pub struct OpaquePublicKey {
pub algorithm: Algorithm,
pub key: OpaquePublicKeyBytes,
}Available on crate feature
alloc only.Expand description
An opaque public key with a custom algorithm name.
The encoded representation of an OpaquePublicKey is the encoded representation of its
OpaquePublicKeyBytes.
Fields§
§algorithm: AlgorithmThe Algorithm of this public key.
key: OpaquePublicKeyBytesThe key data
Implementations§
Trait Implementations§
Source§impl AsRef<[u8]> for OpaquePublicKey
impl AsRef<[u8]> for OpaquePublicKey
Source§impl Clone for OpaquePublicKey
impl Clone for OpaquePublicKey
Source§impl Debug for OpaquePublicKey
impl Debug for OpaquePublicKey
Source§impl Encode for OpaquePublicKey
impl Encode for OpaquePublicKey
Source§fn encoded_len(&self) -> Result<usize>
fn encoded_len(&self) -> Result<usize>
Get the length of this type encoded in bytes, prior to Base64 encoding. Read more
Source§fn encoded_len_prefixed(&self) -> Result<usize, Error>
fn encoded_len_prefixed(&self) -> Result<usize, Error>
Return the length of this type after encoding when prepended with a
uint32 length prefix. Read moreimpl Eq for OpaquePublicKey
Source§impl From<&OpaqueKeypair> for OpaquePublicKey
impl From<&OpaqueKeypair> for OpaquePublicKey
Source§fn from(keypair: &OpaqueKeypair) -> OpaquePublicKey
fn from(keypair: &OpaqueKeypair) -> OpaquePublicKey
Converts to this type from the input type.
Source§impl Hash for OpaquePublicKey
impl Hash for OpaquePublicKey
Source§impl Ord for OpaquePublicKey
impl Ord for OpaquePublicKey
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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for OpaquePublicKey
impl PartialEq for OpaquePublicKey
Source§impl PartialOrd for OpaquePublicKey
impl PartialOrd for OpaquePublicKey
impl StructuralPartialEq for OpaquePublicKey
Auto Trait Implementations§
impl Forget for OpaquePublicKey
impl Freeze for OpaquePublicKey
impl Move for OpaquePublicKey
impl RefUnwindSafe for OpaquePublicKey
impl Send for OpaquePublicKeywhere
RawVecInner: Send,
impl Sync for OpaquePublicKeywhere
RawVecInner: Sync,
impl Unpin for OpaquePublicKey
impl UnsafeUnpin for OpaquePublicKey
impl UnwindSafe for OpaquePublicKeywhere
RawVecInner: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> ToHex for T
impl<T> ToHex for T
Source§fn encode_hex<U>(&self) -> Uwhere
U: FromIterator<char>,
fn encode_hex<U>(&self) -> Uwhere
U: FromIterator<char>,
Encode the hex strict representing
self into the result. Lower case
letters are used (e.g. f9b4ca)Source§fn encode_hex_upper<U>(&self) -> Uwhere
U: FromIterator<char>,
fn encode_hex_upper<U>(&self) -> Uwhere
U: FromIterator<char>,
Encode the hex strict representing
self into the result. Upper case
letters are used (e.g. F9B4CA)