pub struct OwnershipChallenge {
pub dns_name: String,
pub token: String,
pub expire_time: Option<Timestamp>,
pub verify_time: Option<Timestamp>,
pub suspend_time: Option<Timestamp>,
pub suspension_reason: i32,
pub last_check: i32,
}Expand description
How a public zone proves control of its name: a TXT record named
dns_name whose value is token, answered by the name’s current DNS,
unless the name is delegated to the zone’s name_servers, which proves
it as well.
Fields§
§dns_name: StringThe name of the TXT record to create where the zone’s name is hosted
now: _origin-challenge. followed by the zone’s dns_name.
token: StringThe value the TXT record holds.
expire_time: Option<Timestamp>When a pending zone that hasn’t verified is deleted; unset once it verified.
verify_time: Option<Timestamp>When the zone verified; unset while it is pending.
suspend_time: Option<Timestamp>When the zone was suspended; unset unless it is hosted_zone::State::Suspended.
suspension_reason: i32Why the zone was suspended; unset unless it is hosted_zone::State::Suspended.
last_check: i32What the check VerifyHostedZone made found. Set only in that
method’s response.
Implementations§
Source§impl OwnershipChallenge
impl OwnershipChallenge
Sourcepub fn suspension_reason(&self) -> SuspensionReason
pub fn suspension_reason(&self) -> SuspensionReason
Returns the enum value of suspension_reason, or the default if the field is set to an invalid enum value.
Sourcepub fn set_suspension_reason(&mut self, value: SuspensionReason)
pub fn set_suspension_reason(&mut self, value: SuspensionReason)
Sets suspension_reason to the provided enum value.
Sourcepub fn last_check(&self) -> CheckOutcome
pub fn last_check(&self) -> CheckOutcome
Returns the enum value of last_check, or the default if the field is set to an invalid enum value.
Sourcepub fn set_last_check(&mut self, value: CheckOutcome)
pub fn set_last_check(&mut self, value: CheckOutcome)
Sets last_check to the provided enum value.
Trait Implementations§
Source§impl Clone for OwnershipChallenge
impl Clone for OwnershipChallenge
Source§impl Debug for OwnershipChallenge
impl Debug for OwnershipChallenge
Source§impl Default for OwnershipChallenge
impl Default for OwnershipChallenge
Source§impl<'de> Deserialize<'de> for OwnershipChallenge
impl<'de> Deserialize<'de> for OwnershipChallenge
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>,
impl Eq for OwnershipChallenge
Source§impl Hash for OwnershipChallenge
impl Hash for OwnershipChallenge
Source§impl Message for OwnershipChallenge
impl Message for OwnershipChallenge
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.Source§impl PartialEq for OwnershipChallenge
impl PartialEq for OwnershipChallenge
Source§impl Serialize for OwnershipChallenge
impl Serialize for OwnershipChallenge
impl StructuralPartialEq for OwnershipChallenge
Auto Trait Implementations§
impl Forget for OwnershipChallenge
impl Freeze for OwnershipChallenge
impl Move for OwnershipChallenge
impl RefUnwindSafe for OwnershipChallenge
impl Send for OwnershipChallenge
impl Sync for OwnershipChallenge
impl Unpin for OwnershipChallenge
impl UnsafeUnpin for OwnershipChallenge
impl UnwindSafe for OwnershipChallenge
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.