pub struct SerializedKey {
pub bytes: [u8; 33],
}Expand description
Serialized compressed public key bytes used as a stable map key.
Fields§
§bytes: [u8; 33]Raw compressed public key bytes.
Trait Implementations§
Source§impl Clone for SerializedKey
impl Clone for SerializedKey
Source§fn clone(&self) -> SerializedKey
fn clone(&self) -> SerializedKey
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SerializedKey
Source§impl Debug for SerializedKey
impl Debug for SerializedKey
Source§impl<'de> Deserialize<'de> for SerializedKey
impl<'de> Deserialize<'de> for SerializedKey
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>,
Deserializes the key from a byte slice.
impl Eq for SerializedKey
Source§impl Hash for SerializedKey
impl Hash for SerializedKey
Source§impl Ord for SerializedKey
impl Ord for SerializedKey
Source§fn cmp(&self, other: &SerializedKey) -> Ordering
fn cmp(&self, other: &SerializedKey) -> Ordering
1.21.0 (const: unstable) · 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 SerializedKey
impl PartialEq for SerializedKey
Source§fn eq(&self, other: &SerializedKey) -> bool
fn eq(&self, other: &SerializedKey) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for SerializedKey
impl PartialOrd for SerializedKey
Source§impl Serialize for SerializedKey
impl Serialize for SerializedKey
impl StructuralPartialEq for SerializedKey
Auto Trait Implementations§
impl Freeze for SerializedKey
impl RefUnwindSafe for SerializedKey
impl Send for SerializedKey
impl Sync for SerializedKey
impl Unpin for SerializedKey
impl UnsafeUnpin for SerializedKey
impl UnwindSafe for SerializedKey
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