Struct CAA
pub struct CAA { /* private fields */ }
Expand description
Implementations§
§impl CAA
impl CAA
pub fn new_issue(
issuer_critical: bool,
name: Option<Name>,
options: Vec<KeyValue>,
) -> CAA
pub fn new_issue( issuer_critical: bool, name: Option<Name>, options: Vec<KeyValue>, ) -> CAA
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.
pub fn new_issuewild(
issuer_critical: bool,
name: Option<Name>,
options: Vec<KeyValue>,
) -> CAA
pub fn new_issuewild( issuer_critical: bool, name: Option<Name>, options: Vec<KeyValue>, ) -> CAA
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.
pub fn new_iodef(issuer_critical: bool, url: Url) -> CAA
pub fn new_iodef(issuer_critical: bool, url: Url) -> CAA
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
pub 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
pub 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.
pub 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
pub 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
pub 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.
pub 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§
§impl BinEncodable for CAA
impl BinEncodable for CAA
§fn emit(&self, encoder: &mut BinEncoder<'_>) -> Result<(), ProtoError>
fn emit(&self, encoder: &mut BinEncoder<'_>) -> Result<(), ProtoError>
§impl RecordData for CAA
impl RecordData for CAA
§fn try_from_rdata(data: RData) -> Result<CAA, RData>
fn try_from_rdata(data: RData) -> Result<CAA, RData>
§fn try_borrow(data: &RData) -> Option<&CAA>
fn try_borrow(data: &RData) -> Option<&CAA>
§fn record_type(&self) -> RecordType
fn record_type(&self) -> RecordType
§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§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§fn and<P, B, E>(self, other: P) -> And<T, P>
fn and<P, B, E>(self, other: P) -> And<T, P>
Policy
that returns Action::Follow
only if self
and other
return
Action::Follow
. Read more§impl<T, U> RamaTryFrom<T> for Uwhere
U: TryFrom<T>,
impl<T, U> RamaTryFrom<T> for Uwhere
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
fn rama_try_from(value: T) -> Result<U, <U as RamaTryFrom<T>>::Error>
§impl<T, U, CrateMarker> RamaTryInto<U, CrateMarker> for Twhere
U: RamaTryFrom<T, CrateMarker>,
impl<T, U, CrateMarker> RamaTryInto<U, CrateMarker> for Twhere
U: RamaTryFrom<T, CrateMarker>,
type Error = <U as RamaTryFrom<T, CrateMarker>>::Error
fn rama_try_into(self) -> Result<U, <U as RamaTryFrom<T, CrateMarker>>::Error>
§impl<T> ToSmolStr for T
impl<T> ToSmolStr for T
fn to_smolstr(&self) -> SmolStr
§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string
, but without panic on OOM.