pub struct ResponseRecord {
pub signature_fields: SignatureFields,
pub dns: Vec<u8>,
pub cert: Vec<u8>,
}Expand description
One DNS + certificate pair inside a MultiResponse.
Fields§
§signature_fields: SignatureFieldsRFC 9421/9530-style publisher signature fields. Empty for unsigned OpenMulti or static seed records.
dns: Vec<u8>Serialised DNS packet bytes.
cert: Vec<u8>DER-encoded leaf certificate of the publisher, or empty when unavailable.
Implementations§
Source§impl ResponseRecord
impl ResponseRecord
pub fn new( signature_fields: SignatureFields, dns: Vec<u8>, cert: Vec<u8>, ) -> Self
pub fn unsigned(dns: Vec<u8>, cert: Vec<u8>) -> Self
Sourcepub fn cert_fingerprint_hex(&self) -> Option<String>
pub fn cert_fingerprint_hex(&self) -> Option<String>
SHA-256 fingerprint of the publisher certificate as lowercase hex.
Returns None when the cert field is empty.
pub fn publisher_certificate_chain_key(&self) -> Option<CertificateChainKey>
Trait Implementations§
Source§impl Clone for ResponseRecord
impl Clone for ResponseRecord
Source§fn clone(&self) -> ResponseRecord
fn clone(&self) -> ResponseRecord
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 ResponseRecord
impl Debug for ResponseRecord
impl Eq for ResponseRecord
Source§impl PartialEq for ResponseRecord
impl PartialEq for ResponseRecord
impl StructuralPartialEq for ResponseRecord
Auto Trait Implementations§
impl Freeze for ResponseRecord
impl RefUnwindSafe for ResponseRecord
impl Send for ResponseRecord
impl Sync for ResponseRecord
impl Unpin for ResponseRecord
impl UnsafeUnpin for ResponseRecord
impl UnwindSafe for ResponseRecord
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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