Struct coreledger_backend::model::TransactionEvent
pub struct TransactionEvent {
pub event_ix: u64,
pub event_type: EventType,
pub contract_id: Option<ContractId>,
pub ledger_id: Option<LedgerId>,
}
Expand description
Meta-info of the event, occured within a transaction.
Fields§
§event_ix: u64
Index of the event. It starts with 0 is unique within it’s scope.
If the event is contract-scoped, then contract_id
field has value.
If the event is ledger-scoped, then ledger_id
field has value.
event_type: EventType
Type of the event.
contract_id: Option<ContractId>
Id of a contract. Has value, if the event is contract-scoped.
ledger_id: Option<LedgerId>
Id of a ledger. Has value, if the event is ledger-scoped.
Implementations§
§impl TransactionEvent
impl TransactionEvent
Trait Implementations§
§impl CandidType for TransactionEvent
impl CandidType for TransactionEvent
§impl Clone for TransactionEvent
impl Clone for TransactionEvent
§fn clone(&self) -> TransactionEvent
fn clone(&self) -> TransactionEvent
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more§impl Debug for TransactionEvent
impl Debug for TransactionEvent
§impl<'de> Deserialize<'de> for TransactionEvent
impl<'de> Deserialize<'de> for TransactionEvent
§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
§impl Serialize for TransactionEvent
impl Serialize for TransactionEvent
Auto Trait Implementations§
impl Freeze for TransactionEvent
impl RefUnwindSafe for TransactionEvent
impl Send for TransactionEvent
impl Sync for TransactionEvent
impl Unpin for TransactionEvent
impl UnwindSafe for TransactionEvent
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