pub struct XChainCommit<'a> {
pub common_fields: CommonFields<'a, NoFlags>,
pub amount: Amount<'a>,
pub xchain_bridge: XChainBridge<'a>,
pub xchain_claim_id: Cow<'a, str>,
pub other_chain_destination: Option<Cow<'a, str>>,
}
Fields§
§common_fields: CommonFields<'a, NoFlags>
§amount: Amount<'a>
§xchain_bridge: XChainBridge<'a>
§xchain_claim_id: Cow<'a, str>
§other_chain_destination: Option<Cow<'a, str>>
Implementations§
Source§impl<'a> XChainCommit<'a>
impl<'a> XChainCommit<'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>, amount: Amount<'a>, xchain_bridge: XChainBridge<'a>, xchain_claim_id: Cow<'a, str>, other_chain_destination: Option<Cow<'a, str>>, ) -> XChainCommit<'a>
Trait Implementations§
Source§impl<'a> Debug for XChainCommit<'a>
impl<'a> Debug for XChainCommit<'a>
Source§impl<'de, 'a> Deserialize<'de> for XChainCommit<'a>
impl<'de, 'a> Deserialize<'de> for XChainCommit<'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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Model for XChainCommit<'_>
impl Model for XChainCommit<'_>
Source§fn get_errors(&self) -> XRPLModelResult<()>
fn get_errors(&self) -> XRPLModelResult<()>
Collects a models errors and returns the first error that occurs.
Source§fn validate(&self) -> XRPLModelResult<()>
fn validate(&self) -> XRPLModelResult<()>
Simply forwards the error from
get_errors
if there was one.Source§impl<'a> Serialize for XChainCommit<'a>
impl<'a> Serialize for XChainCommit<'a>
Source§impl<'a> Transaction<'a, NoFlags> for XChainCommit<'a>
impl<'a> Transaction<'a, NoFlags> for XChainCommit<'a>
fn get_common_fields(&self) -> &CommonFields<'_, NoFlags>
fn get_mut_common_fields(&mut self) -> &mut CommonFields<'a, NoFlags>
fn get_transaction_type(&self) -> &TransactionType
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 XChainCommit<'a>
impl<'a> ValidateCurrencies for XChainCommit<'a>
fn validate_currencies(&self) -> XRPLModelResult<()>
Auto Trait Implementations§
impl<'a> Freeze for XChainCommit<'a>
impl<'a> RefUnwindSafe for XChainCommit<'a>
impl<'a> Send for XChainCommit<'a>
impl<'a> Sync for XChainCommit<'a>
impl<'a> Unpin for XChainCommit<'a>
impl<'a> UnwindSafe for XChainCommit<'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
Mutably borrows from an owned value. Read more