pub struct Event {
pub time: u64,
pub caller: Principal,
pub operation: String,
pub details: Vec<(String, DetailValue), Global>,
}Fields
time: u64The timestamp in ms.
caller: PrincipalThe caller that initiated the call on the token contract.
operation: StringThe operation that took place.
details: Vec<(String, DetailValue), Global>Details of the transaction.
Implementations
impl Event
impl Event
pub fn extract_principal_ids(&self) -> BTreeSet<&Principal>
pub fn extract_principal_ids(&self) -> BTreeSet<&Principal>
Return a set containing all of the Principal IDs involved in an event.
pub fn extract_token_ids(&self) -> BTreeSet<u64>
pub fn extract_token_ids(&self) -> BTreeSet<u64>
Return a set containing all of the token ids involved in an event.
Trait Implementations
impl AsHashTree for Event
impl AsHashTree for Event
impl CandidType for Event
impl CandidType for Event
impl<'de> Deserialize<'de> for Event
impl<'de> Deserialize<'de> for Event
fn deserialize<__D>(
__deserializer: __D
) -> Result<Event, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<Event, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl<T: TryFromEvent + IntoEvent + Clone> Into<Event> for TypedEvent<T>
impl<T: TryFromEvent + IntoEvent + Clone> Into<Event> for TypedEvent<T>
impl Into<IndefiniteEvent> for Event
impl Into<IndefiniteEvent> for Event
fn into(self) -> IndefiniteEvent
fn into(self) -> IndefiniteEvent
Converts this type into the (usually inferred) input type.
impl Serialize for Event
impl Serialize for Event
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
sourceimpl<T: TryFromEvent + IntoEvent + Clone> TryFrom<Event> for TypedEvent<T>
impl<T: TryFromEvent + IntoEvent + Clone> TryFrom<Event> for TypedEvent<T>
Auto Trait Implementations
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnwindSafe for Event
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more