pub struct ShortKeysetId { /* private fields */ }
Expand description
Improper prefix of the keyset ID. In case of v1, this is the whole ID. In case of v2, this is the 8-byte prefix
Implementations§
Source§impl ShortKeysetId
impl ShortKeysetId
Sourcepub fn from_bytes(bytes: &[u8]) -> Result<ShortKeysetId, Error>
pub fn from_bytes(bytes: &[u8]) -> Result<ShortKeysetId, Error>
ShortKeysetId
from bytes
Trait Implementations§
Source§impl Clone for ShortKeysetId
impl Clone for ShortKeysetId
Source§fn clone(&self) -> ShortKeysetId
fn clone(&self) -> ShortKeysetId
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 Debug for ShortKeysetId
impl Debug for ShortKeysetId
Source§impl<'de> Deserialize<'de> for ShortKeysetId
impl<'de> Deserialize<'de> for ShortKeysetId
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ShortKeysetId, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ShortKeysetId, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for ShortKeysetId
impl Display for ShortKeysetId
Source§impl From<Id> for ShortKeysetId
impl From<Id> for ShortKeysetId
Source§fn from(id: Id) -> ShortKeysetId
fn from(id: Id) -> ShortKeysetId
Converts to this type from the input type.
Source§impl From<ShortKeysetId> for String
impl From<ShortKeysetId> for String
Source§fn from(value: ShortKeysetId) -> String
fn from(value: ShortKeysetId) -> String
Converts to this type from the input type.
Source§impl FromStr for ShortKeysetId
impl FromStr for ShortKeysetId
Source§impl Hash for ShortKeysetId
impl Hash for ShortKeysetId
Source§impl Ord for ShortKeysetId
impl Ord for ShortKeysetId
Source§fn cmp(&self, other: &ShortKeysetId) -> Ordering
fn cmp(&self, other: &ShortKeysetId) -> 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 ShortKeysetId
impl PartialEq for ShortKeysetId
Source§impl PartialOrd for ShortKeysetId
impl PartialOrd for ShortKeysetId
Source§impl Serialize for ShortKeysetId
impl Serialize for ShortKeysetId
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Source§impl TryFrom<String> for ShortKeysetId
impl TryFrom<String> for ShortKeysetId
impl Eq for ShortKeysetId
impl StructuralPartialEq for ShortKeysetId
Auto Trait Implementations§
impl Freeze for ShortKeysetId
impl RefUnwindSafe for ShortKeysetId
impl Send for ShortKeysetId
impl Sync for ShortKeysetId
impl Unpin for ShortKeysetId
impl UnwindSafe for ShortKeysetId
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