pub struct Ticket<'a> {
pub common_fields: CommonFields<'a, NoFlags>,
pub account: Cow<'a, str>,
pub owner_node: Cow<'a, str>,
pub previous_txn_id: Cow<'a, str>,
pub previous_txn_lgr_seq: u32,
pub ticket_sequence: u32,
}
Expand description
The Ticket
object type represents a Ticket
, which tracks an account sequence number that
has been set aside for future use. You can create new tickets with a TicketCreate
transaction.
Fields§
§common_fields: CommonFields<'a, NoFlags>
The base fields for all ledger object models.
See Ledger Object Common Fields:
<https://xrpl.org/ledger-entry-common-fields.html>
account: Cow<'a, str>
The account that owns this Ticket.
owner_node: Cow<'a, str>
A hint indicating which page of the owner directory links to this object, in case the directory consists of multiple pages.
previous_txn_id: Cow<'a, str>
The identifying hash of the transaction that most recently modified this object.
previous_txn_lgr_seq: u32
The index of the ledger that contains the transaction that most recently modified this object.
ticket_sequence: u32
The Sequence Number this Ticket sets aside.
Implementations§
Trait Implementations§
Source§impl<'de, 'a> Deserialize<'de> for Ticket<'a>
impl<'de, 'a> Deserialize<'de> for Ticket<'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> LedgerObject<NoFlags> for Ticket<'a>
impl<'a> LedgerObject<NoFlags> for Ticket<'a>
fn get_ledger_entry_type(&self) -> LedgerEntryType
fn has_flag(&self, flag: &T) -> bool
Source§impl<'a> Model for Ticket<'a>
impl<'a> Model for Ticket<'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.impl<'a> Eq for Ticket<'a>
impl<'a> StructuralPartialEq for Ticket<'a>
Auto Trait Implementations§
impl<'a> Freeze for Ticket<'a>
impl<'a> RefUnwindSafe for Ticket<'a>
impl<'a> Send for Ticket<'a>
impl<'a> Sync for Ticket<'a>
impl<'a> Unpin for Ticket<'a>
impl<'a> UnwindSafe for Ticket<'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.