pub struct TxEvent {
pub caller: Principal,
pub details: Vec<(String, GenericValue)>,
pub operation: String,
pub time: u64,
}
Expand description
Transaction event
Fields§
§caller: Principal
§details: Vec<(String, GenericValue)>
§operation: String
§time: u64
Trait Implementations§
Source§impl CandidType for TxEvent
impl CandidType for TxEvent
Source§impl<'de> Deserialize<'de> for TxEvent
impl<'de> Deserialize<'de> for TxEvent
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
Source§impl Storable for TxEvent
impl Storable for TxEvent
Source§const BOUND: Bound = ic_stable_structures::storable::Bound::Unbounded
const BOUND: Bound = ic_stable_structures::storable::Bound::Unbounded
The size bounds of the type.
Source§fn from_bytes(bytes: Cow<'_, [u8]>) -> Self
fn from_bytes(bytes: Cow<'_, [u8]>) -> Self
Converts bytes into an element.
Source§fn to_bytes_checked(&self) -> Cow<'_, [u8]>
fn to_bytes_checked(&self) -> Cow<'_, [u8]>
Like
to_bytes
, but includes additional checks to ensure the element’s serialized bytes
are within the element’s bounds.impl StructuralPartialEq for TxEvent
Auto Trait Implementations§
impl Freeze for TxEvent
impl RefUnwindSafe for TxEvent
impl Send for TxEvent
impl Sync for TxEvent
impl Unpin for TxEvent
impl UnwindSafe for TxEvent
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