Struct trust_dns_proto::rr::rdata::openpgpkey::OPENPGPKEY
source · pub struct OPENPGPKEY { /* private fields */ }
Expand description
The RDATA portion of an OPENPGPKEY resource record contains a single
value consisting of a Transferable Public Key formatted as specified
in [RFC4880].
Implementations§
source§impl OPENPGPKEY
impl OPENPGPKEY
sourcepub fn new(public_key: Vec<u8>) -> Self
pub fn new(public_key: Vec<u8>) -> Self
Creates a new OPENPGPKEY record data.
Arguments
public_key
- an OpenPGP Transferable Public Key. This will NOT be checked.
sourcepub fn public_key(&self) -> &[u8] ⓘ
pub fn public_key(&self) -> &[u8] ⓘ
The public key. This should be an OpenPGP Transferable Public Key, but this is not guaranteed.
Trait Implementations§
source§impl Clone for OPENPGPKEY
impl Clone for OPENPGPKEY
source§fn clone(&self) -> OPENPGPKEY
fn clone(&self) -> OPENPGPKEY
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 OPENPGPKEY
impl Debug for OPENPGPKEY
source§impl Display for OPENPGPKEY
impl Display for OPENPGPKEY
Parse the RData from a set of tokens.
2.3. The OPENPGPKEY RDATA Presentation Format
The RDATA Presentation Format, as visible in Zone Files [RFC1035],
consists of a single OpenPGP Transferable Public Key as defined in
Section 11.1 of [RFC4880] encoded in base64 as defined in Section 4
of [RFC4648].