pub struct CheckCreate<'a> {
pub common_fields: CommonFields<'a, NoFlags>,
pub destination: Cow<'a, str>,
pub send_max: Amount<'a>,
pub destination_tag: Option<u32>,
pub expiration: Option<u32>,
pub invoice_id: Option<Cow<'a, str>>,
}
Expand description
Create a Check object in the ledger, which is a deferred payment that can be cashed by its intended destination.
See CheckCreate:
<https://xrpl.org/docs/references/protocol/transactions/types/checkcreate>
Fields§
§common_fields: CommonFields<'a, NoFlags>
The base fields for all transaction models.
See Transaction Common Fields:
<https://xrpl.org/transaction-common-fields.html>
destination: Cow<'a, str>
The unique address of the account that can cash the Check.
send_max: Amount<'a>
Maximum amount of source currency the Check is allowed to debit the sender, including transfer fees on non-XRP currencies. The Check can only credit the destination with the same currency (from the same issuer, for non-XRP currencies). For non-XRP amounts, the nested field names MUST be lower-case.
destination_tag: Option<u32>
Arbitrary tag that identifies the reason for the Check, or a hosted recipient to pay.
expiration: Option<u32>
Time after which the Check is no longer valid, in seconds since the Ripple Epoch.
invoice_id: Option<Cow<'a, str>>
Arbitrary 256-bit hash representing a specific reason or identifier for this Check.
Implementations§
Source§impl<'a> CheckCreate<'a>
impl<'a> CheckCreate<'a>
pub fn new( account: Cow<'a, str>, account_txn_id: Option<Cow<'a, str>>, fee: Option<XRPAmount<'a>>, last_ledger_sequence: Option<u32>, memos: Option<Vec<Memo>>, sequence: Option<u32>, signers: Option<Vec<Signer>>, source_tag: Option<u32>, ticket_sequence: Option<u32>, destination: Cow<'a, str>, send_max: Amount<'a>, destination_tag: Option<u32>, expiration: Option<u32>, invoice_id: Option<Cow<'a, str>>, ) -> Self
pub fn with_destination_tag(self, destination_tag: u32) -> Self
pub fn with_expiration(self, expiration: u32) -> Self
pub fn with_invoice_id(self, invoice_id: Cow<'a, str>) -> Self
Trait Implementations§
Source§impl<'a> Clone for CheckCreate<'a>
impl<'a> Clone for CheckCreate<'a>
Source§fn clone(&self) -> CheckCreate<'a>
fn clone(&self) -> CheckCreate<'a>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl<'a> CommonTransactionBuilder<'a, NoFlags> for CheckCreate<'a>
impl<'a> CommonTransactionBuilder<'a, NoFlags> for CheckCreate<'a>
Source§fn get_mut_common_fields(&mut self) -> &mut CommonFields<'a, NoFlags>
fn get_mut_common_fields(&mut self) -> &mut CommonFields<'a, NoFlags>
Source§fn with_sequence(self, sequence: u32) -> Selfwhere
Self: Sized,
fn with_sequence(self, sequence: u32) -> Selfwhere
Self: Sized,
Source§fn with_last_ledger_sequence(self, last_ledger_sequence: u32) -> Selfwhere
Self: Sized,
fn with_last_ledger_sequence(self, last_ledger_sequence: u32) -> Selfwhere
Self: Sized,
Source§fn with_source_tag(self, source_tag: u32) -> Selfwhere
Self: Sized,
fn with_source_tag(self, source_tag: u32) -> Selfwhere
Self: Sized,
Source§fn with_ticket_sequence(self, ticket_sequence: u32) -> Selfwhere
Self: Sized,
fn with_ticket_sequence(self, ticket_sequence: u32) -> Selfwhere
Self: Sized,
Source§impl<'a> Debug for CheckCreate<'a>
impl<'a> Debug for CheckCreate<'a>
Source§impl<'a> Default for CheckCreate<'a>
impl<'a> Default for CheckCreate<'a>
Source§fn default() -> CheckCreate<'a>
fn default() -> CheckCreate<'a>
Source§impl<'de, 'a> Deserialize<'de> for CheckCreate<'a>
impl<'de, 'a> Deserialize<'de> for CheckCreate<'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>,
Source§impl<'a> Model for CheckCreate<'a>
impl<'a> Model for CheckCreate<'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.Source§impl<'a> PartialEq for CheckCreate<'a>
impl<'a> PartialEq for CheckCreate<'a>
Source§impl<'a> Serialize for CheckCreate<'a>
impl<'a> Serialize for CheckCreate<'a>
Source§impl<'a> Transaction<'a, NoFlags> for CheckCreate<'a>
impl<'a> Transaction<'a, NoFlags> for CheckCreate<'a>
fn get_transaction_type(&self) -> &TransactionType
fn get_common_fields(&self) -> &CommonFields<'_, NoFlags>
fn get_mut_common_fields(&mut self) -> &mut CommonFields<'a, NoFlags>
fn has_flag(&self, flag: &T) -> bool
fn get_field_value(&self, field: &str) -> XRPLModelResult<Option<String>>
fn is_signed(&self) -> bool
Source§impl<'a> ValidateCurrencies for CheckCreate<'a>
impl<'a> ValidateCurrencies for CheckCreate<'a>
fn validate_currencies(&self) -> XRPLModelResult<()>
impl<'a> Eq for CheckCreate<'a>
impl<'a> StructuralPartialEq for CheckCreate<'a>
Auto Trait Implementations§
impl<'a> Freeze for CheckCreate<'a>
impl<'a> RefUnwindSafe for CheckCreate<'a>
impl<'a> Send for CheckCreate<'a>
impl<'a> Sync for CheckCreate<'a>
impl<'a> Unpin for CheckCreate<'a>
impl<'a> UnwindSafe for CheckCreate<'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,
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.