pub struct CAA { /* private fields */ }
Expand description
Implementations§
Source§impl CAA
impl CAA
Sourcepub fn new_issue(
issuer_critical: bool,
name: Option<Name>,
options: Vec<KeyValue>,
) -> Self
pub fn new_issue( issuer_critical: bool, name: Option<Name>, options: Vec<KeyValue>, ) -> Self
Creates a new CAA issue record data, the tag is issue
§Arguments
issuer_critical
- indicates that the corresponding property tag MUST be understood if the semantics of the CAA record are to be correctly interpreted by an issuername
- authorized to issue certificates for the associated record labeloptions
- additional options for the issuer, e.g. ‘account’, etc.
Sourcepub fn new_issuewild(
issuer_critical: bool,
name: Option<Name>,
options: Vec<KeyValue>,
) -> Self
pub fn new_issuewild( issuer_critical: bool, name: Option<Name>, options: Vec<KeyValue>, ) -> Self
Creates a new CAA issue record data, the tag is issuewild
§Arguments
issuer_critical
- indicates that the corresponding property tag MUST be understood if the semantics of the CAA record are to be correctly interpreted by an issuername
- authorized to issue certificates for the associated record labeloptions
- additional options for the issuer, e.g. ‘account’, etc.
Sourcepub fn new_iodef(issuer_critical: bool, url: Url) -> Self
pub fn new_iodef(issuer_critical: bool, url: Url) -> Self
Creates a new CAA issue record data, the tag is iodef
§Arguments
issuer_critical
- indicates that the corresponding property tag MUST be understood if the semantics of the CAA record are to be correctly interpreted by an issuerurl
- Url where issuer errors should be reported
Sourcepub fn issuer_critical(&self) -> bool
pub fn issuer_critical(&self) -> bool
Indicates that the corresponding property tag MUST be understood if the semantics of the CAA record are to be correctly interpreted by an issuer
Sourcepub fn set_issuer_critical(&mut self, issuer_critical: bool)
pub fn set_issuer_critical(&mut self, issuer_critical: bool)
Set the Issuer Critical Flag. This indicates that the corresponding property tag MUST be understood if the semantics of the CAA record are to be correctly interpreted by an issuer.
Sourcepub fn value(&self) -> &Value
👎Deprecated: See value_as_issue(), value_as_iodef(), or raw_value() instead
pub fn value(&self) -> &Value
A value associated with the property tag, see struct documentation
Sourcepub fn set_value(&mut self, value: Value)
pub fn set_value(&mut self, value: Value)
Set the value associated with the property tag, see struct documentation
Sourcepub fn value_as_issue(
&self,
) -> Result<(Option<Name>, Vec<KeyValue>), ProtoError>
pub fn value_as_issue( &self, ) -> Result<(Option<Name>, Vec<KeyValue>), ProtoError>
Get the value of an issue
or issuewild
CAA record.
This returns an error if the record’s tag is not issue
or issuewild
, or if the value
does not match the expected syntax.
Sourcepub fn value_as_iodef(&self) -> Result<Url, ProtoError>
pub fn value_as_iodef(&self) -> Result<Url, ProtoError>
Get the value of an iodef
CAA record.
This returns an error if the record’s tag is not iodef
, or if the value is an invalid URL.
Trait Implementations§
Source§impl BinEncodable for CAA
impl BinEncodable for CAA
Source§fn emit(&self, encoder: &mut BinEncoder<'_>) -> Result<(), ProtoError>
fn emit(&self, encoder: &mut BinEncoder<'_>) -> Result<(), ProtoError>
Source§impl RecordData for CAA
impl RecordData for CAA
Source§fn try_from_rdata(data: RData) -> Result<Self, RData>
fn try_from_rdata(data: RData) -> Result<Self, RData>
Source§fn try_borrow(data: &RData) -> Option<&Self>
fn try_borrow(data: &RData) -> Option<&Self>
Source§fn record_type(&self) -> RecordType
fn record_type(&self) -> RecordType
Source§fn into_rdata(self) -> RData
fn into_rdata(self) -> RData
impl Eq for CAA
impl StructuralPartialEq for CAA
Auto Trait Implementations§
impl Freeze for CAA
impl RefUnwindSafe for CAA
impl Send for CAA
impl Sync for CAA
impl Unpin for CAA
impl UnwindSafe for CAA
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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§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
key
and return true
if they are equal.