pub struct FactorTarget {
pub system_id: String,
pub effect: Effect,
pub evidence: EvidenceTier,
pub weight_milli: u32,
}Expand description
One (system, effect, evidence, magnitude) mapping carried by a factor. weight_milli is a
bounded 0..=1000 contribution magnitude (integer, no float health arithmetic).
Fields§
§system_id: String§effect: Effect§evidence: EvidenceTier§weight_milli: u32Trait Implementations§
Source§impl Clone for FactorTarget
impl Clone for FactorTarget
Source§impl Debug for FactorTarget
impl Debug for FactorTarget
Source§impl<'de> Deserialize<'de> for FactorTarget
impl<'de> Deserialize<'de> for FactorTarget
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for FactorTarget
Source§impl PartialEq for FactorTarget
impl PartialEq for FactorTarget
Source§impl Serialize for FactorTarget
impl Serialize for FactorTarget
impl StructuralPartialEq for FactorTarget
Auto Trait Implementations§
impl Freeze for FactorTarget
impl RefUnwindSafe for FactorTarget
impl Send for FactorTarget
impl Sync for FactorTarget
impl Unpin for FactorTarget
impl UnsafeUnpin for FactorTarget
impl UnwindSafe for FactorTarget
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more