Enum hsmtool::util::key::KeyEncoding
source · pub enum KeyEncoding {
Pem,
Der,
Pkcs1,
Pkcs8,
Pkcs1Pem,
Pkcs8Pem,
Pkcs1Der,
Pkcs8Der,
}
Variants§
Pem
When saving, Pem means Pkcs8Pem.
Der
When saving, Der means Pkcs8Der.
Pkcs1
When saving, Pkcs1 means Pkcs1Pem.
Pkcs8
When saving, Pkcs8 means Pkcs8Pem.
Pkcs1Pem
Pcks1 encoding in a PEM container.
Pkcs8Pem
Pcks8 encoding in a PEM container.
Pkcs1Der
Pcks1 encoding in a DER container.
Pkcs8Der
Pcks8 encoding in a DER container.
Trait Implementations§
source§impl Clone for KeyEncoding
impl Clone for KeyEncoding
source§fn clone(&self) -> KeyEncoding
fn clone(&self) -> KeyEncoding
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 KeyEncoding
impl Debug for KeyEncoding
source§impl<'de> Deserialize<'de> for KeyEncoding
impl<'de> Deserialize<'de> for KeyEncoding
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>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<KeyEncoding> for KeyEncoding
impl PartialEq<KeyEncoding> for KeyEncoding
source§fn eq(&self, other: &KeyEncoding) -> bool
fn eq(&self, other: &KeyEncoding) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for KeyEncoding
impl Serialize for KeyEncoding
source§impl ValueEnum for KeyEncoding
impl ValueEnum for KeyEncoding
impl Copy for KeyEncoding
impl Eq for KeyEncoding
impl StructuralEq for KeyEncoding
impl StructuralPartialEq for KeyEncoding
Auto Trait Implementations§
impl RefUnwindSafe for KeyEncoding
impl Send for KeyEncoding
impl Sync for KeyEncoding
impl Unpin for KeyEncoding
impl UnwindSafe for KeyEncoding
Blanket Implementations§
§impl<T> Annotate for Twhere
T: Serialize + ?Sized,
impl<T> Annotate for Twhere T: Serialize + ?Sized,
default fn format( &self, _variant: Option<&str>, _field: &MemberId<'_> ) -> Option<Format>
default fn comment( &self, _variant: Option<&str>, _field: &MemberId<'_> ) -> Option<String>
default fn as_annotate(&self) -> Option<&dyn Annotate>
default fn thunk_serialize( &self, serializer: &mut AnnotatedSerializer<'_> ) -> Result<Document, Error>
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.