pub struct ChallengeResponse {
pub challenge: String,
pub session_id: String,
pub expires_at: String,
pub tee_attestation: Option<Value>,
}Expand description
Server responds from POST /auth/challenge.
Canonical shape: { challenge, sessionId, expiresAt }.
teeAttestation is a VTA-specific top-level field documented as
a vendor extension — Nitro-Enclave deployments populate it; non-
TEE deployments omit it.
Fields§
§challenge: Stringbase64url-encoded one-time nonce.
session_id: StringOpaque session identifier the producer echoes into the matching
authenticate document.
expires_at: StringISO-8601 timestamp after which the challenge MUST NOT be honored.
tee_attestation: Option<Value>VTA-specific (optional): TEE attestation evidence bound to the challenge nonce. Present when the VTA is running inside a Nitro Enclave; proves the challenge was generated within the trusted boundary. Absent for non-TEE deployments.
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 (const: unstable) · 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 UnsafeUnpin 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