pub enum KeyUsage {
Host,
Zone,
Entity,
Reserved,
}
Available on crate feature
dnssec
only.Expand description
Declares what this key is for
Variants§
Host
key associated with a “user” or “account” at an end entity, usually a host
Zone
👎Deprecated: For Zone signing DNSKEY should be used
zone key for the zone whose name is the KEY RR owner name
Entity
associated with the non-zone “entity” whose name is the RR owner name
Reserved
Reserved
Trait Implementations§
source§impl<'de> Deserialize<'de> for KeyUsage
impl<'de> Deserialize<'de> for KeyUsage
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 KeyUsage
impl PartialEq for KeyUsage
impl Copy for KeyUsage
impl Eq for KeyUsage
impl StructuralEq for KeyUsage
impl StructuralPartialEq for KeyUsage
Auto Trait Implementations§
impl RefUnwindSafe for KeyUsage
impl Send for KeyUsage
impl Sync for KeyUsage
impl Unpin for KeyUsage
impl UnwindSafe for KeyUsage
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 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.