Struct Escrow

Source
#[repr(C)]
pub struct Escrow;

Trait Implementations§

Source§

impl Clone for Escrow

Source§

fn clone(&self) -> Escrow

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Escrow

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl EscrowFields for Escrow

Source§

fn get_account(&self, register_num: i32) -> Result<AccountID>

The address of the owner (sender) of this escrow. This is the account that provided the XRP and gets it back if the escrow is canceled.
Source§

fn get_amount(&self, register_num: i32) -> Result<TokenAmount>

The amount of XRP, in drops, currently held in the escrow.
Source§

fn get_cancel_after(&self, register_num: i32) -> Result<Option<u32>>

The escrow can be canceled if and only if this field is present and the time it specifies has passed. Specifically, this is specified as seconds since the Ripple Epoch and it “has passed” if it’s earlier than the close time of the previous validated ledger.
Source§

fn get_condition(&self, register_num: i32) -> Result<Option<Condition>>

A PREIMAGE-SHA-256 crypto-condition, as hexadecimal. If present, the EscrowFinish transaction must contain a fulfillment that satisfies this condition.
Source§

fn get_destination(&self, register_num: i32) -> Result<AccountID>

The destination address where the XRP is paid if the escrow is successful.
Source§

fn get_destination_node(&self, register_num: i32) -> Result<Option<Hash256>>

A hint indicating which page of the destination’s owner directory links to this object, in case the directory consists of multiple pages. Omitted on escrows created before enabling the fix1523 amendment.
Source§

fn get_destination_tag(&self, register_num: i32) -> Result<Option<u32>>

An arbitrary tag to further specify the destination for this escrow, such as a hosted recipient at the destination address.
Source§

fn get_finish_after(&self, register_num: i32) -> Result<Option<u32>>

The time, in seconds since the Ripple Epoch, after which this escrow can be finished. Any EscrowFinish transaction before this time fails. (Specifically, this is compared with the close time of the previous validated ledger.)
Source§

fn get_owner_node(&self, register_num: i32) -> Result<Hash256>

A hint indicating which page of the sender’s owner directory links to this entry, in case the directory consists of multiple pages.
Source§

fn get_previous_txn_id(&self, register_num: i32) -> Result<Hash256>

The identifying hash of the transaction that most recently modified this entry.
Source§

fn get_previous_txn_lgr_seq(&self, register_num: i32) -> Result<u32>

The index of the ledger that contains the transaction that most recently modified this entry.
Source§

fn get_source_tag(&self, register_num: i32) -> Result<Option<u32>>

An arbitrary tag to further specify the source for this escrow, such as a hosted recipient at the owner’s address.
Source§

fn get_finish_function(&self, register_num: i32) -> Result<Option<Blob>>

The WASM code that is executing.
Source§

fn get_data(&self, register_num: i32) -> Result<ContractData>

Retrieves the contract data from the specified ledger object. Read more
Source§

impl LedgerObjectCommonFields for Escrow

Source§

fn get_ledger_index(&self, register_num: i32) -> Result<Hash256>

Retrieves the ledger index (unique identifier) of the ledger object. Read more
Source§

fn get_flags(&self, register_num: i32) -> Result<u32>

Retrieves the flags field of the ledger object. Read more
Source§

fn get_ledger_entry_type(&self) -> Result<u16>

Retrieves the ledger entry type of the object. Read more
Source§

impl PartialEq for Escrow

Source§

fn eq(&self, other: &Escrow) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Copy for Escrow

Source§

impl Eq for Escrow

Source§

impl StructuralPartialEq for Escrow

Auto Trait Implementations§

§

impl Freeze for Escrow

§

impl RefUnwindSafe for Escrow

§

impl Send for Escrow

§

impl Sync for Escrow

§

impl Unpin for Escrow

§

impl UnwindSafe for Escrow

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.