pub struct LedgerEntry<'a> {Show 13 fields
pub common_fields: CommonFields<'a>,
pub account_root: Option<Cow<'a, str>>,
pub binary: Option<bool>,
pub check: Option<Cow<'a, str>>,
pub deposit_preauth: Option<DepositPreauth<'a>>,
pub directory: Option<Directory<'a>>,
pub escrow: Option<Escrow<'a>>,
pub index: Option<Cow<'a, str>>,
pub ledger_lookup: Option<LookupByLedgerRequest<'a>>,
pub offer: Option<Offer<'a>>,
pub payment_channel: Option<Cow<'a, str>>,
pub ripple_state: Option<RippleState<'a>>,
pub ticket: Option<Ticket<'a>>,
}
Expand description
The ledger_entry method returns a single ledger object from the XRP Ledger in its raw format. See ledger formats for information on the different types of objects you can retrieve.
See Ledger Formats:
<https://xrpl.org/ledger-data-formats.html#ledger-data-formats>
See Ledger Entry:
<https://xrpl.org/ledger_entry.html#ledger_entry>
Fields§
§common_fields: CommonFields<'a>
The common fields shared by all requests.
account_root: Option<Cow<'a, str>>
§binary: Option<bool>
If true, return the requested ledger object’s contents as a hex string in the XRP Ledger’s binary format. Otherwise, return data in JSON format. The default is false.
check: Option<Cow<'a, str>>
§deposit_preauth: Option<DepositPreauth<'a>>
§directory: Option<Directory<'a>>
§escrow: Option<Escrow<'a>>
§index: Option<Cow<'a, str>>
§ledger_lookup: Option<LookupByLedgerRequest<'a>>
The unique identifier of a ledger.
offer: Option<Offer<'a>>
§payment_channel: Option<Cow<'a, str>>
§ripple_state: Option<RippleState<'a>>
§ticket: Option<Ticket<'a>>
Implementations§
Source§impl<'a> LedgerEntry<'a>
impl<'a> LedgerEntry<'a>
pub fn new( id: Option<Cow<'a, str>>, account_root: Option<Cow<'a, str>>, binary: Option<bool>, check: Option<Cow<'a, str>>, deposit_preauth: Option<DepositPreauth<'a>>, directory: Option<Directory<'a>>, escrow: Option<Escrow<'a>>, index: Option<Cow<'a, str>>, ledger_hash: Option<Cow<'a, str>>, ledger_index: Option<LedgerIndex<'a>>, offer: Option<Offer<'a>>, payment_channel: Option<Cow<'a, str>>, ripple_state: Option<RippleState<'a>>, ticket: Option<Ticket<'a>>, ) -> Self
Trait Implementations§
Source§impl<'a> Clone for LedgerEntry<'a>
impl<'a> Clone for LedgerEntry<'a>
Source§fn clone(&self) -> LedgerEntry<'a>
fn clone(&self) -> LedgerEntry<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<'a> Debug for LedgerEntry<'a>
impl<'a> Debug for LedgerEntry<'a>
Source§impl<'de, 'a> Deserialize<'de> for LedgerEntry<'a>
impl<'de, 'a> Deserialize<'de> for LedgerEntry<'a>
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<'a> From<LedgerEntry<'a>> for XRPLRequest<'a>
impl<'a> From<LedgerEntry<'a>> for XRPLRequest<'a>
Source§fn from(request: LedgerEntry<'a>) -> Self
fn from(request: LedgerEntry<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> LedgerEntryError for LedgerEntry<'a>
impl<'a> LedgerEntryError for LedgerEntry<'a>
fn _get_field_error(&self) -> XRPLModelResult<()>
Source§impl<'a: 'static> Model for LedgerEntry<'a>
impl<'a: 'static> Model for LedgerEntry<'a>
Source§fn get_errors(&self) -> XRPLModelResult<()>
fn get_errors(&self) -> XRPLModelResult<()>
Collects a models errors and returns the first error that occurs.
Source§fn validate(&self) -> XRPLModelResult<()>
fn validate(&self) -> XRPLModelResult<()>
Simply forwards the error from
get_errors
if there was one.Source§impl<'a> PartialEq for LedgerEntry<'a>
impl<'a> PartialEq for LedgerEntry<'a>
Source§impl<'a> Request<'a> for LedgerEntry<'a>
impl<'a> Request<'a> for LedgerEntry<'a>
fn get_common_fields(&self) -> &CommonFields<'a>
fn get_common_fields_mut(&mut self) -> &mut CommonFields<'a>
Source§impl<'a> Serialize for LedgerEntry<'a>
impl<'a> Serialize for LedgerEntry<'a>
impl<'a> Eq for LedgerEntry<'a>
impl<'a> StructuralPartialEq for LedgerEntry<'a>
Auto Trait Implementations§
impl<'a> Freeze for LedgerEntry<'a>
impl<'a> RefUnwindSafe for LedgerEntry<'a>
impl<'a> Send for LedgerEntry<'a>
impl<'a> Sync for LedgerEntry<'a>
impl<'a> Unpin for LedgerEntry<'a>
impl<'a> UnwindSafe for LedgerEntry<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.