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].
Source§impl Hash for OPENPGPKEY
impl Hash for OPENPGPKEY
Source§impl PartialEq for OPENPGPKEY
impl PartialEq for OPENPGPKEY
impl Eq for OPENPGPKEY
impl StructuralPartialEq for OPENPGPKEY
Auto Trait Implementations§
impl Freeze for OPENPGPKEY
impl RefUnwindSafe for OPENPGPKEY
impl Send for OPENPGPKEY
impl Sync for OPENPGPKEY
impl Unpin for OPENPGPKEY
impl UnwindSafe for OPENPGPKEY
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)