pub struct LedgerEvent {
pub key: String,
pub module: ModuleRef,
pub number: u64,
pub tx_hash: Option<String>,
pub type_: String,
pub value: Map<String, Value>,
}Expand description
Ledger event emitted by a transaction
JSON schema
{
"description": "Ledger event emitted by a transaction",
"type": "object",
"required": [
"key",
"module",
"number",
"type",
"value"
],
"properties": {
"key": {
"description": "Event key",
"type": "string"
},
"module": {
"$ref": "#/components/schemas/ModuleRef"
},
"number": {
"description": "Event number",
"type": "integer",
"format": "uint64",
"minimum": 0.0
},
"tx_hash": {
"description": "Transaction hash (if associated with a transaction)",
"type": "string"
},
"type": {
"description": "Event type",
"type": "string"
},
"value": {
"description": "Event value (arbitrary JSON)",
"type": "object"
}
}
}Fields§
§key: StringEvent key
module: ModuleRef§number: u64Event number
tx_hash: Option<String>Transaction hash (if associated with a transaction)
type_: StringEvent type
value: Map<String, Value>Event value (arbitrary JSON)
Trait Implementations§
Source§impl Clone for LedgerEvent
impl Clone for LedgerEvent
Source§fn clone(&self) -> LedgerEvent
fn clone(&self) -> LedgerEvent
Returns a duplicate 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 moreSource§impl Debug for LedgerEvent
impl Debug for LedgerEvent
Source§impl<'de> Deserialize<'de> for LedgerEvent
impl<'de> Deserialize<'de> for LedgerEvent
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 Freeze for LedgerEvent
impl RefUnwindSafe for LedgerEvent
impl Send for LedgerEvent
impl Sync for LedgerEvent
impl Unpin for LedgerEvent
impl UnsafeUnpin for LedgerEvent
impl UnwindSafe for LedgerEvent
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