Struct Ledger

Source
pub struct Ledger<TransactionType> {
Show 13 fields pub account_hash: String, pub close_flags: u64, pub close_time: u64, pub close_time_human: String, pub close_time_resolution: u64, pub closed: bool, pub ledger_hash: String, pub ledger_index: String, pub parent_close_time: u64, 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: u64

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: u64

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: u64

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 for Ledger<TransactionType>
where TransactionType: Debug,

Source§

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

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<Ledger<TransactionType>, <__D as Deserializer<'de>>::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> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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, 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> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

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

Source§

impl<T> ErasedDestructor for T
where T: 'static,