pub trait CurrentLedgerObjectCommonFields {
// Provided methods
fn get_ledger_index(&self) -> Result<Hash256> { ... }
fn get_get_flags(&self) -> Result<u32> { ... }
fn get_ledger_entry_type(&self) -> Result<u16> { ... }
}Expand description
Trait providing access to common fields in the current ledger object.
This trait defines methods to access standard fields that are common across different types of ledger objects, specifically for the current ledger object being processed.
Provided Methods§
Sourcefn get_ledger_index(&self) -> Result<Hash256>
fn get_ledger_index(&self) -> Result<Hash256>
Retrieves the ledger index (unique identifier) of the current ledger object.
§Returns
The ledger index as a Hash256 value
Sourcefn get_get_flags(&self) -> Result<u32>
fn get_get_flags(&self) -> Result<u32>
Sourcefn get_ledger_entry_type(&self) -> Result<u16>
fn get_ledger_entry_type(&self) -> Result<u16>
Retrieves the ledger entry type of the current ledger object.
The value 0x0075, mapped to the string Escrow, indicates that this is an Escrow entry.
§Returns
The ledger entry type as a u16 value