Enum trust_dns_server::config::dnssec::PrivateKeyType
source · #[non_exhaustive]pub enum PrivateKeyType {
Pkcs8,
Der,
}
Expand description
Format of the private key file to read
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.
Pkcs8
PKCS8 formatted key file, allows for a password (requires Rustls)
Der
DER formatted key, raw and unencrypted
Trait Implementations§
source§impl Clone for PrivateKeyType
impl Clone for PrivateKeyType
source§fn clone(&self) -> PrivateKeyType
fn clone(&self) -> PrivateKeyType
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 PrivateKeyType
impl Debug for PrivateKeyType
source§impl Default for PrivateKeyType
impl Default for PrivateKeyType
source§impl<'de> Deserialize<'de> for PrivateKeyType
impl<'de> Deserialize<'de> for PrivateKeyType
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 for PrivateKeyType
impl PartialEq for PrivateKeyType
source§fn eq(&self, other: &PrivateKeyType) -> bool
fn eq(&self, other: &PrivateKeyType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for PrivateKeyType
impl Eq for PrivateKeyType
impl StructuralEq for PrivateKeyType
impl StructuralPartialEq for PrivateKeyType
Auto Trait Implementations§
impl RefUnwindSafe for PrivateKeyType
impl Send for PrivateKeyType
impl Sync for PrivateKeyType
impl Unpin for PrivateKeyType
impl UnwindSafe for PrivateKeyType
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§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 Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.