pub struct EventEnvelope {
pub version: Option<u8>,
pub event_id: Option<String>,
pub event_type: String,
pub occurred_at: String,
pub subscriber_id: Option<String>,
pub product_id: Option<String>,
pub amount: Option<String>,
pub currency: Option<String>,
pub event_source_url: Option<String>,
pub identity_context: Option<IdentityContext>,
pub funnel_context: Option<FunnelContext>,
}Fields§
§version: Option<u8>Wire format version (EVENT_WIRE_VERSION). Populated by track().
event_id: Option<String>Stable, client-generated id reused across retries so downstream
fan-out can dedupe. Populated by track() when the caller omits it.
event_type: String§occurred_at: StringISO-8601 UTC timestamp, e.g. “2026-05-28T10:00:00Z”
subscriber_id: Option<String>§product_id: Option<String>§amount: Option<String>Decimal string, e.g. “9.99”
currency: Option<String>ISO-4217 three-letter code, e.g. “USD”
event_source_url: Option<String>§identity_context: Option<IdentityContext>§funnel_context: Option<FunnelContext>funnel_* attribution payload. Absent for every other event type.
Trait Implementations§
Source§impl Clone for EventEnvelope
impl Clone for EventEnvelope
Source§fn clone(&self) -> EventEnvelope
fn clone(&self) -> EventEnvelope
Returns a copy 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 EventEnvelope
impl Debug for EventEnvelope
Source§impl<'de> Deserialize<'de> for EventEnvelope
impl<'de> Deserialize<'de> for EventEnvelope
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 EventEnvelope
impl RefUnwindSafe for EventEnvelope
impl Send for EventEnvelope
impl Sync for EventEnvelope
impl Unpin for EventEnvelope
impl UnwindSafe for EventEnvelope
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