pub struct ParsedSignal {
pub kind: SignalKind,
pub source: String,
pub value: f64,
pub payload_json: Option<String>,
}Expand description
One parsed signal ready to be persisted. The CLI layer attaches session_id
and recorded_at before inserting into evolve-storage.
Fields§
§kind: SignalKindExplicit vs implicit source.
source: StringShort tag for the signal source (e.g., “tests_passed”, “user_clear”).
value: f64Normalized score in [0.0, 1.0].
payload_json: Option<String>Optional JSON payload. MUST NOT contain source code.
Trait Implementations§
Source§impl Clone for ParsedSignal
impl Clone for ParsedSignal
Source§fn clone(&self) -> ParsedSignal
fn clone(&self) -> ParsedSignal
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ParsedSignal
impl Debug for ParsedSignal
Source§impl PartialEq for ParsedSignal
impl PartialEq for ParsedSignal
impl StructuralPartialEq for ParsedSignal
Auto Trait Implementations§
impl Freeze for ParsedSignal
impl RefUnwindSafe for ParsedSignal
impl Send for ParsedSignal
impl Sync for ParsedSignal
impl Unpin for ParsedSignal
impl UnsafeUnpin for ParsedSignal
impl UnwindSafe for ParsedSignal
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