pub struct GatewayBalances<'a> {
pub common_fields: CommonFields<'a>,
pub account: Cow<'a, str>,
pub hotwallet: Option<Vec<Cow<'a, str>>>,
pub ledger_lookup: Option<LookupByLedgerRequest<'a>>,
pub strict: Option<bool>,
}
Expand description
This request calculates the total balances issued by a given account, optionally excluding amounts held by operational addresses.
See Gateway Balances:
<https://xrpl.org/gateway_balances.html>
Fields§
§common_fields: CommonFields<'a>
The common fields shared by all requests.
account: Cow<'a, str>
The Address to check. This should be the issuing address.
hotwallet: Option<Vec<Cow<'a, str>>>
An operational address to exclude from the balances issued, or an array of such addresses.
ledger_lookup: Option<LookupByLedgerRequest<'a>>
The unique identifier of a ledger.
strict: Option<bool>
If true, only accept an address or public key for the account parameter. Defaults to false.
Implementations§
Trait Implementations§
Source§impl<'a> Clone for GatewayBalances<'a>
impl<'a> Clone for GatewayBalances<'a>
Source§fn clone(&self) -> GatewayBalances<'a>
fn clone(&self) -> GatewayBalances<'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 GatewayBalances<'a>
impl<'a> Debug for GatewayBalances<'a>
Source§impl<'de, 'a> Deserialize<'de> for GatewayBalances<'a>
impl<'de, 'a> Deserialize<'de> for GatewayBalances<'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<GatewayBalances<'a>> for XRPLRequest<'a>
impl<'a> From<GatewayBalances<'a>> for XRPLRequest<'a>
Source§fn from(request: GatewayBalances<'a>) -> Self
fn from(request: GatewayBalances<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> Model for GatewayBalances<'a>
impl<'a> Model for GatewayBalances<'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 GatewayBalances<'a>
impl<'a> PartialEq for GatewayBalances<'a>
Source§impl<'a> Request<'a> for GatewayBalances<'a>
impl<'a> Request<'a> for GatewayBalances<'a>
fn get_common_fields(&self) -> &CommonFields<'a>
fn get_common_fields_mut(&mut self) -> &mut CommonFields<'a>
Source§impl<'a> Serialize for GatewayBalances<'a>
impl<'a> Serialize for GatewayBalances<'a>
impl<'a> Eq for GatewayBalances<'a>
impl<'a> StructuralPartialEq for GatewayBalances<'a>
Auto Trait Implementations§
impl<'a> Freeze for GatewayBalances<'a>
impl<'a> RefUnwindSafe for GatewayBalances<'a>
impl<'a> Send for GatewayBalances<'a>
impl<'a> Sync for GatewayBalances<'a>
impl<'a> Unpin for GatewayBalances<'a>
impl<'a> UnwindSafe for GatewayBalances<'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.