Struct nando_support::activation_id::ActivationId
source · pub struct ActivationId {
txn_id: u128,
subtxn_id: Ulid,
}Fields§
§txn_id: u128§subtxn_id: UlidImplementations§
source§impl ActivationId
impl ActivationId
pub fn new_for_txn(txn_id: u128) -> Self
pub fn new_subtxn(parent_activation_id: &Self) -> Self
pub fn belongs_to_root(&self) -> bool
pub fn txn_id(&self) -> u128
Trait Implementations§
source§impl Clone for ActivationId
impl Clone for ActivationId
source§fn clone(&self) -> ActivationId
fn clone(&self) -> ActivationId
Returns a copy 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 Debug for ActivationId
impl Debug for ActivationId
source§impl Default for ActivationId
impl Default for ActivationId
source§fn default() -> ActivationId
fn default() -> ActivationId
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for ActivationId
impl<'de> Deserialize<'de> for ActivationId
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 Display for ActivationId
impl Display for ActivationId
source§impl FromStr for ActivationId
impl FromStr for ActivationId
source§impl Hash for ActivationId
impl Hash for ActivationId
source§impl Ord for ActivationId
impl Ord for ActivationId
source§fn cmp(&self, other: &ActivationId) -> Ordering
fn cmp(&self, other: &ActivationId) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for ActivationId
impl PartialEq for ActivationId
source§fn eq(&self, other: &ActivationId) -> bool
fn eq(&self, other: &ActivationId) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd for ActivationId
impl PartialOrd for ActivationId
source§fn partial_cmp(&self, other: &ActivationId) -> Option<Ordering>
fn partial_cmp(&self, other: &ActivationId) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moresource§impl Serialize for ActivationId
impl Serialize for ActivationId
impl Copy for ActivationId
impl Eq for ActivationId
impl StructuralEq for ActivationId
impl StructuralPartialEq for ActivationId
Auto Trait Implementations§
impl RefUnwindSafe for ActivationId
impl Send for ActivationId
impl Sync for ActivationId
impl Unpin for ActivationId
impl UnwindSafe for ActivationId
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