pub struct AccountLines<'a> {
pub common_fields: CommonFields<'a>,
pub account: Cow<'a, str>,
pub ledger_lookup: Option<LookupByLedgerRequest<'a>>,
pub limit: Option<u16>,
pub peer: Option<Cow<'a, str>>,
}
Expand description
This request returns information about an account’s trust lines, including balances in all non-XRP currencies and assets. All information retrieved is relative to a particular version of the ledger.
See Account Lines:
<https://xrpl.org/account_lines.html>
Fields§
§common_fields: CommonFields<'a>
The common fields shared by all requests.
account: Cow<'a, str>
A unique identifier for the account, most commonly the account’s Address.
ledger_lookup: Option<LookupByLedgerRequest<'a>>
The unique identifier of a ledger.
limit: Option<u16>
Limit the number of trust lines to retrieve. The server is not required to honor this value. Must be within the inclusive range 10 to 400.
peer: Option<Cow<'a, str>>
The Address of a second account. If provided, show only lines of trust connecting the two accounts.
Implementations§
Trait Implementations§
Source§impl<'a> Clone for AccountLines<'a>
impl<'a> Clone for AccountLines<'a>
Source§fn clone(&self) -> AccountLines<'a>
fn clone(&self) -> AccountLines<'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 AccountLines<'a>
impl<'a> Debug for AccountLines<'a>
Source§impl<'de, 'a> Deserialize<'de> for AccountLines<'a>
impl<'de, 'a> Deserialize<'de> for AccountLines<'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<AccountLines<'a>> for XRPLRequest<'a>
impl<'a> From<AccountLines<'a>> for XRPLRequest<'a>
Source§fn from(request: AccountLines<'a>) -> Self
fn from(request: AccountLines<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> Model for AccountLines<'a>
impl<'a> Model for AccountLines<'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 AccountLines<'a>
impl<'a> PartialEq for AccountLines<'a>
Source§impl<'a> Request<'a> for AccountLines<'a>
impl<'a> Request<'a> for AccountLines<'a>
fn get_common_fields(&self) -> &CommonFields<'a>
fn get_common_fields_mut(&mut self) -> &mut CommonFields<'a>
Source§impl<'a> Serialize for AccountLines<'a>
impl<'a> Serialize for AccountLines<'a>
impl<'a> Eq for AccountLines<'a>
impl<'a> StructuralPartialEq for AccountLines<'a>
Auto Trait Implementations§
impl<'a> Freeze for AccountLines<'a>
impl<'a> RefUnwindSafe for AccountLines<'a>
impl<'a> Send for AccountLines<'a>
impl<'a> Sync for AccountLines<'a>
impl<'a> Unpin for AccountLines<'a>
impl<'a> UnwindSafe for AccountLines<'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.