pub struct AccountChannel {
pub account: String,
pub destination_account: String,
pub amount: String,
pub balance: String,
pub channel_id: String,
pub settle_delay: u32,
pub public_key: Option<String>,
pub expiration: Option<u32>,
pub cancel_after: Option<u32>,
pub source_tag: Option<u32>,
pub destination_tag: Option<u32>,
}
Fields§
§account: String
The owner of the channel, as an Address.
destination_account: String
The destination account of the channel, as an Address. Only this account can receive the XRP in the channel while it is open.
amount: String
The total amount of XRP, in drops allocated to this channel.
balance: String
The total amount of XRP, in drops, paid out from this channel, as of the ledger version used. (You can calculate the amount of XRP left in the channel by subtracting balance from amount.)
channel_id: String
A unique ID for this channel, as a 64-character hexadecimal string. This is also the ID of the channel object in the ledger’s state data.
settle_delay: u32
The number of seconds the payment channel must stay open after the owner of the channel requests to close it.
public_key: Option<String>
§expiration: Option<u32>
§cancel_after: Option<u32>
§source_tag: Option<u32>
§destination_tag: Option<u32>
Trait Implementations§
Source§impl Debug for AccountChannel
impl Debug for AccountChannel
Source§impl<'de> Deserialize<'de> for AccountChannel
impl<'de> Deserialize<'de> for AccountChannel
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
Auto Trait Implementations§
impl Freeze for AccountChannel
impl RefUnwindSafe for AccountChannel
impl Send for AccountChannel
impl Sync for AccountChannel
impl Unpin for AccountChannel
impl UnwindSafe for AccountChannel
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