pub struct Signal {
pub id: Uuid,
pub emitted_at: DateTime<Utc>,
pub actor: Actor,
pub target: SignalTarget,
pub kind: SignalKind,
pub scope: Scope,
pub confidence: f64,
pub schema_version: u32,
}Expand description
A single event envelope: who produced what kind of event about which target, with provenance. Carried verbatim through outbox → server → inbox.
Fields§
§id: Uuid§emitted_at: DateTime<Utc>§actor: Actor§target: SignalTarget§kind: SignalKind§scope: Scope§confidence: f64Confidence weight in [0.0, 1.0] applied server-side during aggregation. Default 1.0 (full weight).
schema_version: u32Wire-format version of this signal. Server-side rejects signals with
unsupported major versions; additive fields with #[serde(default)]
keep signals within the same major forward-compatible.
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