pub struct UserPk(/* private fields */);Expand description
A Lexe user’s primary identifier, derived from the root seed. Serialized as a 64-character hex string.
Implementations§
Trait Implementations§
Source§impl ByteArray<32> for UserPk
impl ByteArray<32> for UserPk
fn from_array(array: [u8; 32]) -> Self
fn to_array(&self) -> [u8; 32]
fn as_array(&self) -> &[u8; 32]
fn as_slice(&self) -> &[u8] ⓘ
fn to_vec(&self) -> Vec<u8> ⓘ
fn try_from_slice(slice: &[u8]) -> Result<Self, TryFromSliceError>
fn try_from_vec(vec: Vec<u8>) -> Result<Self, TryFromSliceError>
fn from_hex(s: &str) -> Result<Self, DecodeError>
fn to_hex(&self) -> String
fn as_hex_display(&self) -> HexDisplay<'_>
fn fmt_as_hex(&self, f: &mut Formatter<'_>) -> Result<(), Error>
Source§impl<'de> Deserialize<'de> for UserPk
impl<'de> Deserialize<'de> for UserPk
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 From<&UserPk> for ShortUserPk
impl From<&UserPk> for ShortUserPk
impl Copy for UserPk
impl Eq for UserPk
impl StructuralPartialEq for UserPk
Auto Trait Implementations§
impl Freeze for UserPk
impl RefUnwindSafe for UserPk
impl Send for UserPk
impl Sync for UserPk
impl Unpin for UserPk
impl UnsafeUnpin for UserPk
impl UnwindSafe for UserPk
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