Struct coreledger_backend::types::TxId
pub struct TxId(/* private fields */);
Expand description
Represents a unique transaction identifier.
Is de-/serialized as 32-bytes-long unsigned big integer value, e.g.:
0xA88FD6AB9CAB58E794D3659DAA85C15FB9A540ED56FD46C866C1D62646C33121
76_242_699_292_620_361_153_586_781_973_747_822_320_299_834_220_927_509_864_315_505_193_362_416_415_009
Implementations§
Trait Implementations§
§impl<'de> Deserialize<'de> for TxId
impl<'de> Deserialize<'de> for TxId
§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
§impl From<TxId> for ContractId
impl From<TxId> for ContractId
§impl Ord for TxId
impl Ord for TxId
§impl PartialOrd for TxId
impl PartialOrd for TxId
§fn partial_cmp(&self, other: &TxId) -> Option<Ordering>
fn partial_cmp(&self, other: &TxId) -> 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 more§impl Storable for TxId
impl Storable for TxId
§fn from_bytes(bytes: Cow<'_, [u8]>) -> Self
fn from_bytes(bytes: Cow<'_, [u8]>) -> Self
Converts bytes into an element.
§fn to_bytes_checked(&self) -> Cow<'_, [u8]>
fn to_bytes_checked(&self) -> Cow<'_, [u8]>
Like
to_bytes
, but includes additional checks to ensure the element’s serialized bytes
are within the element’s bounds.impl Eq for TxId
impl StructuralPartialEq for TxId
Auto Trait Implementations§
impl Freeze for TxId
impl RefUnwindSafe for TxId
impl Send for TxId
impl Sync for TxId
impl Unpin for TxId
impl UnwindSafe for TxId
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