Struct Ledger

Source
pub struct Ledger<TransactionType> {
Show 13 fields pub account_hash: String, pub close_flags: u64, pub close_time: LedgerTimestamp, pub close_time_human: String, pub close_time_resolution: u32, pub closed: bool, pub ledger_hash: String, pub ledger_index: String, pub parent_close_time: LedgerTimestamp, pub parent_hash: String, pub total_coins: String, pub transaction_hash: String, pub transactions: Option<Vec<TransactionType>>,
}

Fields§

§account_hash: String

Hash of all account state information in this ledger, as hex.

§close_flags: u64§close_time: LedgerTimestamp

The time this ledger was closed, in seconds since the Ripple Epoch.

§close_time_human: String

The time this ledger was closed, in human-readable format. Always uses the UTC time zone.

§close_time_resolution: u32

Ledger close times are rounded to within this many seconds.

§closed: bool

Whether or not this ledger has been closed.

§ledger_hash: String

Unique identifying hash of the entire ledger.

§ledger_index: String

The Ledger Index of this ledger, as a quoted integer.

§parent_close_time: LedgerTimestamp

The time at which the previous ledger was closed.

§parent_hash: String

Unique identifying hash of the ledger that came immediately before this one.

§total_coins: String

Total number of XRP drops in the network, as a quoted integer. (This decreases as transaction costs destroy XRP.)

§transaction_hash: String

Hash of the transaction information included in this ledger, as hex

§transactions: Option<Vec<TransactionType>>

(Omitted unless requested) Transactions applied in this ledger version. By default, members are the transactions identifying Hash strings. If the request specified expand as true, members are full representations of the transactions instead, in either JSON or binary depending on whether the request specified binary as true.

Trait Implementations§

Source§

impl<TransactionType: Debug> Debug for Ledger<TransactionType>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de, TransactionType> Deserialize<'de> for Ledger<TransactionType>
where TransactionType: Deserialize<'de>,

Source§

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<TransactionType> Freeze for Ledger<TransactionType>

§

impl<TransactionType> RefUnwindSafe for Ledger<TransactionType>
where TransactionType: RefUnwindSafe,

§

impl<TransactionType> Send for Ledger<TransactionType>
where TransactionType: Send,

§

impl<TransactionType> Sync for Ledger<TransactionType>
where TransactionType: Sync,

§

impl<TransactionType> Unpin for Ledger<TransactionType>
where TransactionType: Unpin,

§

impl<TransactionType> UnwindSafe for Ledger<TransactionType>
where TransactionType: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,