#[non_exhaustive]pub enum PublicKeyShape {
Envelope,
PrintedHex,
Opaque,
}Expand description
How the publicKey field was written.
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.
Envelope
Base64 over oca:<encoding>:<content-type>:<printed key>, as the application note
§3.2.2 specifies.
PrintedHex
Base64 over the key printed as hexadecimal, with no envelope — the shape the same document’s own example message uses.
Opaque
Base64 over bytes that are not text in either shape; taken as the key itself.
Trait Implementations§
Source§impl Clone for PublicKeyShape
impl Clone for PublicKeyShape
impl Copy for PublicKeyShape
Source§impl Debug for PublicKeyShape
impl Debug for PublicKeyShape
impl Eq for PublicKeyShape
Source§impl PartialEq for PublicKeyShape
impl PartialEq for PublicKeyShape
impl StructuralPartialEq for PublicKeyShape
Auto Trait Implementations§
impl Forget for PublicKeyShape
impl Freeze for PublicKeyShape
impl RefUnwindSafe for PublicKeyShape
impl Send for PublicKeyShape
impl Sync for PublicKeyShape
impl Unpin for PublicKeyShape
impl UnsafeUnpin for PublicKeyShape
impl UnwindSafe for PublicKeyShape
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