pub struct Event {
pub time: u64,
pub caller: Principal,
pub operation: String,
pub details: Vec<(String, DetailValue)>,
}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)>Details of the transaction.
Implementations§
Trait Implementations§
Source§impl AsHashTree for Event
impl AsHashTree for Event
Source§impl CandidType for Event
impl CandidType for Event
Source§impl<'de> Deserialize<'de> for Event
impl<'de> Deserialize<'de> for Event
Source§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
Source§impl Into<IndefiniteEvent> for Event
impl Into<IndefiniteEvent> for Event
Source§fn into(self) -> IndefiniteEvent
fn into(self) -> IndefiniteEvent
Converts this type into the (usually inferred) input type.
Source§impl Serialize for Event
impl Serialize for Event
Source§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
Auto Trait Implementations§
impl Freeze for Event
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin 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