Struct coreledger_backend::types::LedgerId
pub struct LedgerId(/* private fields */);
Expand description
Represents principal’s account.
Is de-/serialized as 2-bytes-long integer value, e.g.:
0x0001
1
Implementations§
Trait Implementations§
§impl<'de> Deserialize<'de> for LedgerId
impl<'de> Deserialize<'de> for LedgerId
§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 Ord for LedgerId
impl Ord for LedgerId
§impl PartialOrd for LedgerId
impl PartialOrd for LedgerId
§fn partial_cmp(&self, other: &LedgerId) -> Option<Ordering>
fn partial_cmp(&self, other: &LedgerId) -> 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 LedgerId
impl Storable for LedgerId
§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 LedgerId
impl StructuralPartialEq for LedgerId
Auto Trait Implementations§
impl Freeze for LedgerId
impl RefUnwindSafe for LedgerId
impl Send for LedgerId
impl Sync for LedgerId
impl Unpin for LedgerId
impl UnwindSafe for LedgerId
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