pub struct Event<TCycles = u128> {
    pub id: u32,
    pub timestamp: u64,
    pub kind: EventKind<TCycles>,
}
Expand description

A transaction event tracked by the wallet’s history feature.

Fields§

§id: u32

An ID uniquely identifying this event.

§timestamp: u64

The Unix timestamp that this event occurred at.

§kind: EventKind<TCycles>

The kind of event that occurred.

Trait Implementations§

Formats the value using the given formatter. Read more
Deserialize this value from the given Serde deserializer. Read more
Converts to this type from the input type.

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 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.