pub struct Event {
pub token: Token,
pub stage: Stage,
pub actor: ActorClass,
pub at: Timestamp,
pub seq: Seq,
pub variant: Option<u8>,
pub regions: Option<u8>,
}Expand description
One thing that happened to a token. No payload field exists — the type system, not policy, keeps recipient data out of analytics (I-1).
Fields§
§token: TokenThe token the event applies to.
stage: StageThe funnel stage.
actor: ActorClassCoarse actor dimensions.
at: TimestampWhen it happened.
seq: SeqPer-token monotonic sequence (store-assigned).
variant: Option<u8>Which manifest variant served a resolve, if this event is one —
manifest-referencing, so I-1-compatible (doc 02).
regions: Option<u8>Which declared contract regions this access touched, as a bitmask
indexing the manifest’s crate::Contract (doc 19 §4.2) —
manifest-referencing exactly like variant, so I-1-compatible:
positions into a signed declaration, never bytes. Absent on
contract-free tokens and on pre-contract logs.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Event
impl<'de> Deserialize<'de> for Event
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
impl Eq for Event
impl StructuralPartialEq for Event
Auto Trait Implementations§
impl Freeze for Event
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnsafeUnpin for Event
impl UnwindSafe for Event
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