pub struct Event {
    pub time: u64,
    pub caller: Principal,
    pub operation: String,
    pub details: Vec<(String, DetailValue), Global>,
}

Fields

time: u64

The timestamp in ms.

caller: Principal

The caller that initiated the call on the token contract.

operation: String

The operation that took place.

details: Vec<(String, DetailValue), Global>

Details of the transaction.

Implementations

Return a set containing all of the Principal IDs involved in an event.

Return a set containing all of the token ids involved in an event.

Compute the hash for the given event.

Trait Implementations

This method should return the root hash of this hash tree. Must be equivalent to as_hash_tree().reconstruct(). Read more

Constructs a hash tree corresponding to the data.

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

Converts this type into the (usually inferred) input type.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.