pub struct Signal {Show 17 fields
pub id: Uuid,
pub source: String,
pub service: Option<String>,
pub component: Option<String>,
pub event_type: String,
pub severity: Severity,
pub title: String,
pub message: Option<String>,
pub environment: Option<String>,
pub team: Option<String>,
pub run_id: Option<String>,
pub correlation_id: Option<String>,
pub trace_id: Option<String>,
pub log_url: Option<String>,
pub metadata: Value,
pub timestamp: DateTime<Utc>,
pub dedup_key: Option<String>,
}Expand description
The generic signal model. id and timestamp are always stamped by
the core (never trusted from the caller) so every downstream
component — sink, dedup, retry tracking — has a stable identity and
ordering guarantee regardless of which language binding produced it.
Fields§
§id: Uuid§source: String§service: Option<String>§component: Option<String>§event_type: String§severity: Severity§title: String§message: Option<String>§environment: Option<String>§team: Option<String>§run_id: Option<String>§correlation_id: Option<String>§trace_id: Option<String>§log_url: Option<String>§metadata: Value§timestamp: DateTime<Utc>§dedup_key: Option<String>Implementations§
Source§impl Signal
impl Signal
pub fn from_input(input: SignalInput) -> Self
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