Trait CurrentLedgerObjectCommonFields

Source
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§

Source

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

Source

fn get_get_flags(&self) -> Result<u32>

Retrieves the flags field of the current ledger object.

§Returns

The flags as a u32 value

Source

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

Implementors§