#[non_exhaustive]pub enum PublicKeyEncoding {
SubjectPublicKeyInfoDer,
EcUncompressedPoint,
Ed25519Raw,
RsaPkcs1Der,
}Expand description
The encoding of public-key bytes.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
SubjectPublicKeyInfoDer
Complete DER-encoded SubjectPublicKeyInfo.
EcUncompressedPoint
SEC1 uncompressed elliptic-curve point.
Ed25519Raw
Raw 32-byte Ed25519 public key.
RsaPkcs1Der
PKCS#1 DER RSAPublicKey.
Trait Implementations§
Source§impl Clone for PublicKeyEncoding
impl Clone for PublicKeyEncoding
Source§fn clone(&self) -> PublicKeyEncoding
fn clone(&self) -> PublicKeyEncoding
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 PublicKeyEncoding
Source§impl Debug for PublicKeyEncoding
impl Debug for PublicKeyEncoding
impl Eq for PublicKeyEncoding
Source§impl Hash for PublicKeyEncoding
impl Hash for PublicKeyEncoding
Source§impl PartialEq for PublicKeyEncoding
impl PartialEq for PublicKeyEncoding
impl StructuralPartialEq for PublicKeyEncoding
Auto Trait Implementations§
impl Freeze for PublicKeyEncoding
impl RefUnwindSafe for PublicKeyEncoding
impl Send for PublicKeyEncoding
impl Sync for PublicKeyEncoding
impl Unpin for PublicKeyEncoding
impl UnsafeUnpin for PublicKeyEncoding
impl UnwindSafe for PublicKeyEncoding
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