pub struct CollectorEnvelope {
pub schema_version: String,
pub source: String,
pub source_tier: SourceTier,
pub device_trace_id: Option<String>,
pub captured_at_ms: i64,
pub received_at_ms: Option<i64>,
pub raw_event: RawEvent,
}Expand description
apps / collector interface 到 Rust 入口的事件信封。
envelope 只描述来源、版本和传输元信息;真正进入脱敏管线的事件
仍然是 raw_event 中的 RawEvent。
Fields§
§schema_version: String§source: String§source_tier: SourceTier§device_trace_id: Option<String>§captured_at_ms: i64§received_at_ms: Option<i64>§raw_event: RawEventTrait Implementations§
Source§impl Clone for CollectorEnvelope
impl Clone for CollectorEnvelope
Source§fn clone(&self) -> CollectorEnvelope
fn clone(&self) -> CollectorEnvelope
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 CollectorEnvelope
impl Debug for CollectorEnvelope
Source§impl<'de> Deserialize<'de> for CollectorEnvelope
impl<'de> Deserialize<'de> for CollectorEnvelope
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
Source§impl PartialEq for CollectorEnvelope
impl PartialEq for CollectorEnvelope
Source§impl Serialize for CollectorEnvelope
impl Serialize for CollectorEnvelope
impl Eq for CollectorEnvelope
impl StructuralPartialEq for CollectorEnvelope
Auto Trait Implementations§
impl Freeze for CollectorEnvelope
impl RefUnwindSafe for CollectorEnvelope
impl Send for CollectorEnvelope
impl Sync for CollectorEnvelope
impl Unpin for CollectorEnvelope
impl UnsafeUnpin for CollectorEnvelope
impl UnwindSafe for CollectorEnvelope
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