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 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 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<'de> Deserialize<'de> for OPENPGPKEY
impl<'de> Deserialize<'de> for OPENPGPKEY
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 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
Source§impl RecordData for OPENPGPKEY
impl RecordData for OPENPGPKEY
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
Source§impl Serialize for OPENPGPKEY
impl Serialize 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
)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.