pub struct DNSKEY<'a> {
pub flags: u16,
pub protocol: u8,
pub algorithm: u8,
pub public_key: Cow<'a, [u8]>,
}
Expand description
A DNS key record see rfc4034
Fields§
§flags: u16
The flags field contains various flags that describe the key’s properties
protocol: u8
The protocol field must be set to 3 per RFC4034
algorithm: u8
The algorithm field identifies the public key’s cryptographic algorithm
public_key: Cow<'a, [u8]>
The public key field contains the cryptographic key material in base64 format
Implementations§
Trait Implementations§
impl<'a> Eq for DNSKEY<'a>
impl<'a> StructuralPartialEq for DNSKEY<'a>
Auto Trait Implementations§
impl<'a> Freeze for DNSKEY<'a>
impl<'a> RefUnwindSafe for DNSKEY<'a>
impl<'a> Send for DNSKEY<'a>
impl<'a> Sync for DNSKEY<'a>
impl<'a> Unpin for DNSKEY<'a>
impl<'a> UnwindSafe for DNSKEY<'a>
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