pub struct CDNSKEY { /* private fields */ }
Available on crate features
dnssec-aws-lc-rs
or dnssec-ring
only.Expand description
Child DNSKEY. See RFC 8078.
Implementations§
Source§impl CDNSKEY
impl CDNSKEY
Sourcepub fn new(
zone_key: bool,
secure_entry_point: bool,
revoke: bool,
algorithm: Option<Algorithm>,
public_key: Vec<u8>,
) -> Self
pub fn new( zone_key: bool, secure_entry_point: bool, revoke: bool, algorithm: Option<Algorithm>, public_key: Vec<u8>, ) -> Self
Construct a new CDNSKEY RData
§Arguments
zone_key
- this key is used to sign Zone resource recordssecure_entry_point
- this key is used to sign DNSKeys that sign the Zone recordsrevoke
- this key has been revokedalgorithm
- the key’s algorithm, orNone
to request deletionpublic_key
- the public key encoded as a byte array
§Return
A new CDNSKEY RData for use in a Resource Record
Sourcepub fn secure_entry_point(&self) -> bool
pub fn secure_entry_point(&self) -> bool
Returns the value of the Secure Entry Point flag
Sourcepub fn algorithm(&self) -> Option<Algorithm>
pub fn algorithm(&self) -> Option<Algorithm>
Returns the Algorithm field. This is None
if deletion is requested, or the key’s algorithm
if an update is requested.
Sourcepub fn is_delete(&self) -> bool
pub fn is_delete(&self) -> bool
Returns whether this record is requesting deletion of the DS RRset.
Sourcepub fn public_key(&self) -> Option<PublicKeyBuf>
pub fn public_key(&self) -> Option<PublicKeyBuf>
Returns the public key, or None
if deletion is requested.
Trait Implementations§
Source§impl BinEncodable for CDNSKEY
impl BinEncodable for CDNSKEY
Source§fn emit(&self, encoder: &mut BinEncoder<'_>) -> Result<(), ProtoError>
fn emit(&self, encoder: &mut BinEncoder<'_>) -> Result<(), ProtoError>
Write the type to the stream
Source§impl<'de> Deserialize<'de> for CDNSKEY
impl<'de> Deserialize<'de> for CDNSKEY
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 RecordData for CDNSKEY
impl RecordData for CDNSKEY
Source§fn try_from_rdata(data: RData) -> Result<Self, RData>
fn try_from_rdata(data: RData) -> Result<Self, RData>
Attempts to convert to this RecordData from the RData type, if it is not the correct type the original is returned
Source§fn try_borrow(data: &RData) -> Option<&Self>
fn try_borrow(data: &RData) -> Option<&Self>
Attempts to borrow this RecordData from the RData type, if it is not the correct type the original is returned
Source§fn record_type(&self) -> RecordType
fn record_type(&self) -> RecordType
Get the associated RecordType for the RecordData
Source§fn into_rdata(self) -> RData
fn into_rdata(self) -> RData
Converts this RecordData into generic RecordData
impl Eq for CDNSKEY
impl StructuralPartialEq for CDNSKEY
Auto Trait Implementations§
impl Freeze for CDNSKEY
impl RefUnwindSafe for CDNSKEY
impl Send for CDNSKEY
impl Sync for CDNSKEY
impl Unpin for CDNSKEY
impl UnwindSafe for CDNSKEY
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.