pub struct Vault { /* private fields */ }Implementations§
Trait Implementations§
impl Copy for Vault
impl Eq for Vault
Source§impl LedgerObjectCommonFields for Vault
impl LedgerObjectCommonFields for Vault
Source§fn get_slot_num(&self) -> i32
fn get_slot_num(&self) -> i32
Returns the slot number (register number) where the ledger object is stored. Read more
Source§fn path(&self) -> LedgerPathBuilder
fn path(&self) -> LedgerPathBuilder
Starts a nested-field path rooted at this ledger object, read through its slot. Read more
impl StructuralPartialEq for Vault
Source§impl VaultFields for Vault
impl VaultFields for Vault
Source§fn previous_txn_id(&self) -> Result<Hash256>
fn previous_txn_id(&self) -> Result<Hash256>
Identifies the transaction ID that most recently modified this object.
Source§fn previous_txn_lgr_seq(&self) -> Result<u32>
fn previous_txn_lgr_seq(&self) -> Result<u32>
The sequence of the ledger that contains the transaction that most recently modified this
object.
Source§fn owner_node(&self) -> Result<u64>
fn owner_node(&self) -> Result<u64>
Identifies the page where this item is referenced in the owner’s directory.
Source§fn data(&self) -> Result<Option<StandardBlob>>
fn data(&self) -> Result<Option<StandardBlob>>
Arbitrary metadata, in hex format, about the vault. Limited to 256 bytes. See Data Field
Format for more information.
Source§fn asset(&self) -> Result<Issue>
fn asset(&self) -> Result<Issue>
The asset of the vault. The vault supports XRP, trust line tokens, and MPTs.
Source§fn assets_available(&self) -> Result<Option<Number>>
fn assets_available(&self) -> Result<Option<Number>>
The asset amount that is available in the vault.
Source§fn assets_maximum(&self) -> Result<Option<Number>>
fn assets_maximum(&self) -> Result<Option<Number>>
The maximum asset amount that can be held in the vault. If set to 0, this indicates there is
no cap.
Source§fn loss_unrealized(&self) -> Result<Option<Number>>
fn loss_unrealized(&self) -> Result<Option<Number>>
The potential loss amount that is not yet realized, expressed as the vault’s asset. Only a
protocol connected to the vault can modify this attribute.
The identifier of the share
MPTokenIssuance object.Source§fn withdrawal_policy(&self) -> Result<u8>
fn withdrawal_policy(&self) -> Result<u8>
Indicates the withdrawal strategy used by the vault.
Source§fn scale(&self) -> Result<Option<u8>>
fn scale(&self) -> Result<Option<u8>>
Specifies decimal precision for share calculations. Assets are multiplied by 10^Scale to
convert fractional amounts into whole number shares. For example, with a
Scale of 6,
depositing 20.3 units creates 20,300,000 shares (20.3 × 10^Scale). For trust line tokens
this can be configured at vault creation, and valid values are between 0-18, with the
default being 6. For XRP and MPTs, this is fixed at 0. See Scaling Factor for more
information.Auto Trait Implementations§
impl Freeze for Vault
impl RefUnwindSafe for Vault
impl Send for Vault
impl Sync for Vault
impl Unpin for Vault
impl UnsafeUnpin for Vault
impl UnwindSafe for Vault
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