pub struct ChallengeResponse {
pub status: ChallengeStatus,
pub certificate: Option<String>,
pub error: Option<String>,
pub error_code: Option<ErrorCode>,
pub status_message: Option<String>,
pub remaining_tries: Option<u8>,
pub remaining_time_secs: Option<u32>,
}Expand description
Response to a CHALLENGE request.
Fields§
§status: ChallengeStatus§certificate: Option<String>Base64url-encoded issued certificate bytes (present when status == Approved).
error: Option<String>Human-readable error (present when status == Denied).
error_code: Option<ErrorCode>Numeric error code per NDNCERT 0.3 (present when status == Denied).
status_message: Option<String>Status message for in-progress challenges (present when status == Processing).
remaining_tries: Option<u8>Remaining challenge attempts (present when status == Processing).
remaining_time_secs: Option<u32>Seconds remaining before this challenge expires (present when status == Processing).
Trait Implementations§
Source§impl Clone for ChallengeResponse
impl Clone for ChallengeResponse
Source§fn clone(&self) -> ChallengeResponse
fn clone(&self) -> ChallengeResponse
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 ChallengeResponse
impl Debug for ChallengeResponse
Source§impl<'de> Deserialize<'de> for ChallengeResponse
impl<'de> Deserialize<'de> for ChallengeResponse
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 ChallengeResponse
impl RefUnwindSafe for ChallengeResponse
impl Send for ChallengeResponse
impl Sync for ChallengeResponse
impl Unpin for ChallengeResponse
impl UnwindSafe for ChallengeResponse
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