pub struct CommonFields<'a, F>{
pub flags: FlagCollection<F>,
pub ledger_entry_type: LedgerEntryType,
pub index: Option<Cow<'a, str>>,
pub ledger_index: Option<Cow<'a, str>>,
}
Expand description
The base fields for all ledger object models.
See Ledger Object Common Fields:
<https://xrpl.org/ledger-entry-common-fields.html>
Fields§
§flags: FlagCollection<F>
A bit-map of boolean flags enabled for this account.
ledger_entry_type: LedgerEntryType
The type of the ledger object.
index: Option<Cow<'a, str>>
The object ID of a single object to retrieve from the ledger, as a 64-character (256-bit) hexadecimal string.
ledger_index: Option<Cow<'a, str>>
The object ID in transaction metadata of a single object to retrieve from the ledger, as a 64-character (256-bit) hexadecimal string.
Implementations§
Source§impl<'a, F> CommonFields<'a, F>
impl<'a, F> CommonFields<'a, F>
Sourcepub fn new(
flags: FlagCollection<F>,
ledger_entry_type: LedgerEntryType,
index: Option<Cow<'a, str>>,
ledger_index: Option<Cow<'a, str>>,
) -> Self
pub fn new( flags: FlagCollection<F>, ledger_entry_type: LedgerEntryType, index: Option<Cow<'a, str>>, ledger_index: Option<Cow<'a, str>>, ) -> Self
Constructs a new CommonFields
.
Trait Implementations§
Source§impl<'a, F> Clone for CommonFields<'a, F>
impl<'a, F> Clone for CommonFields<'a, F>
Source§fn clone(&self) -> CommonFields<'a, F>
fn clone(&self) -> CommonFields<'a, F>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<'a, F> Debug for CommonFields<'a, F>
impl<'a, F> Debug for CommonFields<'a, F>
Source§impl<'de, 'a, F> Deserialize<'de> for CommonFields<'a, F>
impl<'de, 'a, F> Deserialize<'de> for CommonFields<'a, F>
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, T> LedgerObject<T> for CommonFields<'a, T>
impl<'a, T> LedgerObject<T> for CommonFields<'a, T>
fn has_flag(&self, flag: &T) -> bool
fn get_ledger_entry_type(&self) -> LedgerEntryType
Source§impl<'a, F> PartialEq for CommonFields<'a, F>
impl<'a, F> PartialEq for CommonFields<'a, F>
Source§impl<'a, F> Serialize for CommonFields<'a, F>
impl<'a, F> Serialize for CommonFields<'a, F>
impl<'a, F> Eq for CommonFields<'a, F>
impl<'a, F> StructuralPartialEq for CommonFields<'a, F>
Auto Trait Implementations§
impl<'a, F> Freeze for CommonFields<'a, F>
impl<'a, F> RefUnwindSafe for CommonFields<'a, F>where
F: RefUnwindSafe,
impl<'a, F> Send for CommonFields<'a, F>where
F: Send,
impl<'a, F> Sync for CommonFields<'a, F>where
F: Sync,
impl<'a, F> Unpin for CommonFields<'a, F>where
F: Unpin,
impl<'a, F> UnwindSafe for CommonFields<'a, F>where
F: UnwindSafe,
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.