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: Algorithm
The Algorithm
of this public key.
key: OpaquePublicKeyBytes
The 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§fn clone(&self) -> OpaquePublicKey
fn clone(&self) -> OpaquePublicKey
Returns a copy 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 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.
source§fn encode(&self, writer: &mut impl Writer) -> Result<()>
fn encode(&self, writer: &mut impl Writer) -> Result<()>
Encode this value using the provided
Writer
.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.source§fn encode_prefixed(&self, writer: &mut impl Writer) -> Result<(), Error>
fn encode_prefixed(&self, writer: &mut impl Writer) -> Result<(), Error>
Encode this value, first prepending a
uint32
length prefix
set to Encode::encoded_len
.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
source§fn cmp(&self, other: &OpaquePublicKey) -> Ordering
fn cmp(&self, other: &OpaquePublicKey) -> 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 OpaquePublicKey
impl PartialEq for OpaquePublicKey
source§impl PartialOrd for OpaquePublicKey
impl PartialOrd for OpaquePublicKey
impl Eq for OpaquePublicKey
impl StructuralPartialEq for OpaquePublicKey
Auto Trait Implementations§
impl Freeze for OpaquePublicKey
impl RefUnwindSafe for OpaquePublicKey
impl Send for OpaquePublicKey
impl Sync for OpaquePublicKey
impl Unpin for OpaquePublicKey
impl UnwindSafe for OpaquePublicKey
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)