#[non_exhaustive]pub struct RegistrationPending {
pub status: RegistrationStatus,
pub ans_name: String,
pub agent_id: Option<String>,
pub next_steps: Vec<NextStep>,
pub challenges: Vec<ChallengeInfo>,
pub dns_records: Vec<DnsRecord>,
pub expires_at: Option<DateTime<Utc>>,
pub links: Vec<Link>,
}Expand description
Response for pending registration.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.status: RegistrationStatusCurrent registration status.
ans_name: StringANS name being registered.
agent_id: Option<String>Agent ID (when available).
next_steps: Vec<NextStep>Required actions.
challenges: Vec<ChallengeInfo>ACME challenges.
dns_records: Vec<DnsRecord>DNS records to configure.
expires_at: Option<DateTime<Utc>>Registration expiration.
links: Vec<Link>HATEOAS links.
Implementations§
Source§impl RegistrationPending
impl RegistrationPending
Sourcepub fn get_agent_id(&self) -> Option<String>
pub fn get_agent_id(&self) -> Option<String>
Gets the agent ID, either from the field or by parsing the self link.
The API may not include agent_id in the response body, but it’s
available in the self link (e.g., /v1/agents/{agent_id}).
Trait Implementations§
Source§impl Clone for RegistrationPending
impl Clone for RegistrationPending
Source§fn clone(&self) -> RegistrationPending
fn clone(&self) -> RegistrationPending
Returns a duplicate 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 RegistrationPending
impl Debug for RegistrationPending
Source§impl<'de> Deserialize<'de> for RegistrationPending
impl<'de> Deserialize<'de> for RegistrationPending
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
Auto Trait Implementations§
impl Freeze for RegistrationPending
impl RefUnwindSafe for RegistrationPending
impl Send for RegistrationPending
impl Sync for RegistrationPending
impl Unpin for RegistrationPending
impl UnsafeUnpin for RegistrationPending
impl UnwindSafe for RegistrationPending
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