pub struct LedgerData<'a> {
pub common_fields: CommonFields<'a>,
pub binary: Option<bool>,
pub ledger_lookup: Option<LookupByLedgerRequest<'a>>,
pub limit: Option<u16>,
pub marker: Option<Marker<'a>>,
}
Expand description
The ledger_data method retrieves contents of the specified ledger. You can iterate through several calls to retrieve the entire contents of a single ledger version.
See Ledger Data:
<https://xrpl.org/ledger_data.html>
Fields§
§common_fields: CommonFields<'a>
The common fields shared by all requests.
binary: Option<bool>
If set to true, return ledger objects as hashed hex strings instead of JSON.
ledger_lookup: Option<LookupByLedgerRequest<'a>>
The unique identifier of a ledger.
limit: Option<u16>
Limit the number of ledger objects to retrieve. The server is not required to honor this value.
marker: Option<Marker<'a>>
Value from a previous paginated response. Resume retrieving data where that response left off.
Implementations§
Trait Implementations§
Source§impl<'a> Clone for LedgerData<'a>
impl<'a> Clone for LedgerData<'a>
Source§fn clone(&self) -> LedgerData<'a>
fn clone(&self) -> LedgerData<'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 LedgerData<'a>
impl<'a> Debug for LedgerData<'a>
Source§impl<'de, 'a> Deserialize<'de> for LedgerData<'a>
impl<'de, 'a> Deserialize<'de> for LedgerData<'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<LedgerData<'a>> for XRPLRequest<'a>
impl<'a> From<LedgerData<'a>> for XRPLRequest<'a>
Source§fn from(request: LedgerData<'a>) -> Self
fn from(request: LedgerData<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> Model for LedgerData<'a>
impl<'a> Model for LedgerData<'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 LedgerData<'a>
impl<'a> PartialEq for LedgerData<'a>
Source§impl<'a> Request<'a> for LedgerData<'a>
impl<'a> Request<'a> for LedgerData<'a>
fn get_common_fields(&self) -> &CommonFields<'a>
fn get_common_fields_mut(&mut self) -> &mut CommonFields<'a>
Source§impl<'a> Serialize for LedgerData<'a>
impl<'a> Serialize for LedgerData<'a>
impl<'a> Eq for LedgerData<'a>
impl<'a> StructuralPartialEq for LedgerData<'a>
Auto Trait Implementations§
impl<'a> Freeze for LedgerData<'a>
impl<'a> RefUnwindSafe for LedgerData<'a>
impl<'a> Send for LedgerData<'a>
impl<'a> Sync for LedgerData<'a>
impl<'a> Unpin for LedgerData<'a>
impl<'a> UnwindSafe for LedgerData<'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.