#[non_exhaustive]pub struct OPENPGPKEY {
pub public_key: Vec<u8>,
}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].Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.public_key: Vec<u8>The public key.
This should be an OpenPGP Transferable Public Key, but this is not guaranteed.
Implementations§
Trait Implementations§
Source§impl BinEncodable for OPENPGPKEY
impl BinEncodable for OPENPGPKEY
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 Clone for OPENPGPKEY
impl Clone for OPENPGPKEY
Source§fn clone(&self) -> OPENPGPKEY
fn clone(&self) -> OPENPGPKEY
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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
Parse the RData from a set of tokens.
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
Source§fn eq(&self, other: &OPENPGPKEY) -> bool
fn eq(&self, other: &OPENPGPKEY) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl RecordData for OPENPGPKEY
impl RecordData for OPENPGPKEY
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 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 UnsafeUnpin 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