pub struct MPToken<'a> {Show 14 fields
pub common_fields: CommonFields<'a, MPTokenFlag>,
pub account: Cow<'a, str>,
pub mptoken_issuance_id: Cow<'a, str>,
pub mpt_amount: Cow<'a, str>,
pub previous_txn_id: Cow<'a, str>,
pub previous_txn_lgr_seq: u32,
pub owner_node: Option<Cow<'a, str>>,
pub locked_amount: Option<Cow<'a, str>>,
pub confidential_balance_inbox: Option<Cow<'a, str>>,
pub confidential_balance_spending: Option<Cow<'a, str>>,
pub confidential_balance_version: Option<u32>,
pub issuer_encrypted_balance: Option<Cow<'a, str>>,
pub auditor_encrypted_balance: Option<Cow<'a, str>>,
pub holder_encryption_key: Option<Cow<'a, str>>,
}Expand description
The MPToken ledger object represents a single account’s holdings of a
specific Multi-Purpose Token issuance.
<https://xrpl.org/docs/references/protocol/ledger-data/ledger-entry-types/mptoken>
Fields§
§common_fields: CommonFields<'a, MPTokenFlag>The base fields for all ledger object models.
account: Cow<'a, str>The owner (holder) of these MPTs.
mptoken_issuance_id: Cow<'a, str>The MPTokenIssuance identifier.
mpt_amount: Cow<'a, str>The amount of tokens currently held by the owner. The minimum is 0 and the maximum is 2^63-1.
previous_txn_id: Cow<'a, str>The identifying hash of the transaction that most recently modified this entry.
previous_txn_lgr_seq: u32The index of the ledger that contains the transaction that most recently modified this object.
owner_node: Option<Cow<'a, str>>A hint indicating which page of the owner directory links to this entry, in case the directory consists of multiple pages.
locked_amount: Option<Cow<'a, str>>The amount of this MPT currently locked in escrow or by other mechanisms. Present only when the TokenEscrow amendment is active.
confidential_balance_inbox: Option<Cow<'a, str>>CB_IN — the holder’s confidential inbox balance: a 66-byte EC-ElGamal
ciphertext accumulating incoming confidential transfers until the
holder merges them with ConfidentialMPTMergeInbox (XLS-0096).
confidential_balance_spending: Option<Cow<'a, str>>CB_S — the holder’s confidential spending balance, as a 66-byte
EC-ElGamal ciphertext. Proofs are generated against this balance.
confidential_balance_version: Option<u32>Monotonic counter bumped whenever CB_S changes, binding proofs to a
specific balance state (folded into the transaction’s context hash).
issuer_encrypted_balance: Option<Cow<'a, str>>The issuer’s mirror of this holder’s confidential balance, encrypted
under the issuance’s IssuerEncryptionKey.
auditor_encrypted_balance: Option<Cow<'a, str>>The auditor’s mirror of this holder’s confidential balance, encrypted
under the issuance’s AuditorEncryptionKey, when one is registered.
holder_encryption_key: Option<Cow<'a, str>>The holder’s 33-byte compressed EC-ElGamal public key, registered by
the holder’s first ConfidentialMPTConvert.
Trait Implementations§
Source§impl<'de, 'a> Deserialize<'de> for MPToken<'a>
impl<'de, 'a> Deserialize<'de> for MPToken<'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>,
impl<'a> Eq for MPToken<'a>
Source§impl<'a> LedgerObject<MPTokenFlag> for MPToken<'a>
impl<'a> LedgerObject<MPTokenFlag> for MPToken<'a>
fn get_ledger_entry_type(&self) -> LedgerEntryType
fn has_flag(&self, flag: &T) -> bool
Source§impl<'a> Model for MPToken<'a>
impl<'a> Model for MPToken<'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.impl<'a> StructuralPartialEq for MPToken<'a>
Auto Trait Implementations§
impl<'a> Freeze for MPToken<'a>
impl<'a> RefUnwindSafe for MPToken<'a>
impl<'a> Send for MPToken<'a>
impl<'a> Sync for MPToken<'a>
impl<'a> Unpin for MPToken<'a>
impl<'a> UnsafeUnpin for MPToken<'a>
impl<'a> UnwindSafe for MPToken<'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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.