pub struct Signal {
pub name: String,
pub weight: f32,
pub score: f32,
pub applicable: bool,
pub detail: String,
}Expand description
One interpretable scoring signal and its contribution.
Fields§
§name: String§weight: f32§score: f32Raw signal strength in [0,1].
applicable: boolWhether this signal applies (e.g. task-relevance is inert with no task).
detail: StringHuman-readable explanation, e.g. “mentioned 27×” or “last used today”.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Signal
impl<'de> Deserialize<'de> for Signal
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
Auto Trait Implementations§
impl Freeze for Signal
impl RefUnwindSafe for Signal
impl Send for Signal
impl Sync for Signal
impl Unpin for Signal
impl UnsafeUnpin for Signal
impl UnwindSafe for Signal
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