pub struct UNLModify<'a> {
pub common_fields: CommonFields<'a, NoFlags>,
pub ledger_sequence: u32,
pub unlmodify_disabling: UNLModifyDisabling,
pub unlmodify_validator: Cow<'a, str>,
}
Expand description
See UNLModify:
<https://xrpl.org/unlmodify.html>
Fields§
§common_fields: CommonFields<'a, NoFlags>
The type of transaction.
ledger_sequence: u32
The custom fields for the UNLModify model.
See UNLModify fields:
<https://xrpl.org/unlmodify.html#unlmodify-fields>
unlmodify_disabling: UNLModifyDisabling
§unlmodify_validator: Cow<'a, str>
Implementations§
Source§impl<'a> UNLModify<'a>
impl<'a> UNLModify<'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>, ledger_sequence: u32, unlmodify_disabling: UNLModifyDisabling, unlmodify_validator: Cow<'a, str>, ) -> Self
Trait Implementations§
Source§impl<'de, 'a> Deserialize<'de> for UNLModify<'a>
impl<'de, 'a> Deserialize<'de> for UNLModify<'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<'a> Model for UNLModify<'a>
impl<'a> Model for UNLModify<'a>
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> Transaction<'a, NoFlags> for UNLModify<'a>
impl<'a> Transaction<'a, NoFlags> for UNLModify<'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
impl<'a> Eq for UNLModify<'a>
impl<'a> StructuralPartialEq for UNLModify<'a>
Auto Trait Implementations§
impl<'a> Freeze for UNLModify<'a>
impl<'a> RefUnwindSafe for UNLModify<'a>
impl<'a> Send for UNLModify<'a>
impl<'a> Sync for UNLModify<'a>
impl<'a> Unpin for UNLModify<'a>
impl<'a> UnwindSafe for UNLModify<'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
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
Compare self to
key
and return true
if they are equal.