pub struct AccountChannels<'a> {
pub common_fields: CommonFields<'a>,
pub account: Cow<'a, str>,
pub ledger_lookup: Option<LookupByLedgerRequest<'a>>,
pub limit: Option<u16>,
pub destination_account: Option<Cow<'a, str>>,
pub marker: Option<Marker<'a>>,
}
Expand description
This request returns information about an account’s Payment Channels. This includes only channels where the specified account is the channel’s source, not the destination. (A channel’s “source” and “owner” are the same.) All information retrieved is relative to a particular version of the ledger.
See Account Channels:
<https://xrpl.org/account_channels.html>
§Examples
§Basic usage
use xrpl::models::requests::account_channels::AccountChannels;
let json = r#"{"command":"account_channels","account":"rH6ZiHU1PGamME2LvVTxrgvfjQpppWKGmr","marker":12345678}"#.to_string();
let model: AccountChannels = serde_json::from_str(&json).expect("");
let revert: Option<String> = match serde_json::to_string(&model) {
Ok(model) => Some(model),
Err(_) => None,
};
assert_eq!(revert, Some(json));
Fields§
§common_fields: CommonFields<'a>
Common fields shared by all requests.
account: Cow<'a, str>
The unique identifier of an account, typically the account’s Address. The request returns channels where this account is the channel’s owner/source.
ledger_lookup: Option<LookupByLedgerRequest<'a>>
The unique identifier of a ledger.
limit: Option<u16>
Limit the number of transactions to retrieve. Cannot be less than 10 or more than 400. The default is 200.
destination_account: Option<Cow<'a, str>>
The unique identifier of an account, typically the account’s Address. If provided, filter results to payment channels whose destination is this account.
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 AccountChannels<'a>
impl<'a> Clone for AccountChannels<'a>
Source§fn clone(&self) -> AccountChannels<'a>
fn clone(&self) -> AccountChannels<'a>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl<'a> Debug for AccountChannels<'a>
impl<'a> Debug for AccountChannels<'a>
Source§impl<'de, 'a> Deserialize<'de> for AccountChannels<'a>
impl<'de, 'a> Deserialize<'de> for AccountChannels<'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>,
Source§impl<'a> From<AccountChannels<'a>> for XRPLRequest<'a>
impl<'a> From<AccountChannels<'a>> for XRPLRequest<'a>
Source§fn from(request: AccountChannels<'a>) -> Self
fn from(request: AccountChannels<'a>) -> Self
Source§impl<'a> Model for AccountChannels<'a>
impl<'a> Model for AccountChannels<'a>
Source§fn get_errors(&self) -> XRPLModelResult<()>
fn get_errors(&self) -> XRPLModelResult<()>
Source§fn validate(&self) -> XRPLModelResult<()>
fn validate(&self) -> XRPLModelResult<()>
get_errors
if there was one.Source§impl<'a> PartialEq for AccountChannels<'a>
impl<'a> PartialEq for AccountChannels<'a>
Source§impl<'a> Request<'a> for AccountChannels<'a>
impl<'a> Request<'a> for AccountChannels<'a>
fn get_common_fields(&self) -> &CommonFields<'a>
fn get_common_fields_mut(&mut self) -> &mut CommonFields<'a>
Source§impl<'a> Serialize for AccountChannels<'a>
impl<'a> Serialize for AccountChannels<'a>
impl<'a> Eq for AccountChannels<'a>
impl<'a> StructuralPartialEq for AccountChannels<'a>
Auto Trait Implementations§
impl<'a> Freeze for AccountChannels<'a>
impl<'a> RefUnwindSafe for AccountChannels<'a>
impl<'a> Send for AccountChannels<'a>
impl<'a> Sync for AccountChannels<'a>
impl<'a> Unpin for AccountChannels<'a>
impl<'a> UnwindSafe for AccountChannels<'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
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
key
and return true
if they are equal.