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: u32An ID uniquely identifying this event.
timestamp: u64The Unix timestamp that this event occurred at.
kind: EventKind<TCycles>The kind of event that occurred.
Trait Implementations§
Source§impl<TCycles: CandidType> CandidType for Event<TCycles>
impl<TCycles: CandidType> CandidType for Event<TCycles>
Source§impl<'de, TCycles> Deserialize<'de> for Event<TCycles>where
TCycles: Deserialize<'de>,
impl<'de, TCycles> Deserialize<'de> for Event<TCycles>where
TCycles: Deserialize<'de>,
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
Auto Trait Implementations§
impl<TCycles> Freeze for Event<TCycles>where
TCycles: Freeze,
impl<TCycles> RefUnwindSafe for Event<TCycles>where
TCycles: RefUnwindSafe,
impl<TCycles> Send for Event<TCycles>where
TCycles: Send,
impl<TCycles> Sync for Event<TCycles>where
TCycles: Sync,
impl<TCycles> Unpin for Event<TCycles>where
TCycles: Unpin,
impl<TCycles> UnwindSafe for Event<TCycles>where
TCycles: UnwindSafe,
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