#[repr(C)]pub struct AccountID(pub [u8; 20]);Expand description
A 20-byte account identifier on the XRP Ledger.
AccountIDs are derived from a public key and uniquely identify accounts on the ledger. They are used throughout XRPL for specifying senders, receivers, issuers, and other account-related fields.
§Derived Traits
Copy: Efficient for this 20-byte struct, enabling implicit copyingPartialEq, Eq: Enable comparisons and use in hash-based collectionsDebug, Clone: Standard traits for development and consistency
Tuple Fields§
§0: [u8; 20]Trait Implementations§
impl Copy for AccountID
impl Eq for AccountID
Source§impl FieldDecoder for AccountID
FieldDecoder for XRPL account identifiers: decodes a 20-byte buffer into an AccountID,
failing if the host wrote a different number of bytes.
impl FieldDecoder for AccountID
FieldDecoder for XRPL account identifiers: decodes a 20-byte buffer into an AccountID,
failing if the host wrote a different number of bytes.
impl FromCurrentTx for AccountID
impl FromLedger for AccountID
impl StructuralPartialEq for AccountID
Auto Trait Implementations§
impl Freeze for AccountID
impl RefUnwindSafe for AccountID
impl Send for AccountID
impl Sync for AccountID
impl Unpin for AccountID
impl UnsafeUnpin for AccountID
impl UnwindSafe for AccountID
Blanket Implementations§
§impl<T> AnySync for T
impl<T> AnySync for T
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