Skip to main content

CurrentLedgerHashesFields

Trait CurrentLedgerHashesFields 

Source
pub trait CurrentLedgerHashesFields: CurrentLedgerObjectCommonFields {
    // Provided methods
    fn first_ledger_sequence(&self) -> Result<Option<u32>> { ... }
    fn last_ledger_sequence(&self) -> Result<Option<u32>> { ... }
    fn hashes(&self) -> Result<[u8; 512]> { ... }
}
Expand description

Trait providing access to fields specific to the current LedgerHashes object.

Provided Methods§

Source

fn first_ledger_sequence(&self) -> Result<Option<u32>>

DEPRECATED Do not use. (The “recent hashes” object on Mainnet has the value 2 in this field as a result of an old software bug. That value gets carried forward as the “recent hashes” object is updated. New “previous history” objects do not have this field, nor do “recent hashes” objects in parallel networks started with more recent versions of xrpld.)

Source

fn last_ledger_sequence(&self) -> Result<Option<u32>>

The Ledger Index of the last entry in this object’s Hashes array.

Source

fn hashes(&self) -> Result<[u8; 512]>

An array of up to 256 ledger hashes. The contents depend on which sub-type of LedgerHashes object this is. Raw bytes; VECTOR256 is not yet typed in Rust.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§