pub struct AuthResponse {
pub status: u16,
pub requirement: Option<String>,
pub access: Option<String>,
pub location: Option<String>,
pub error: Option<String>,
}Expand description
The AAuth-relevant fields of a server response. Handed to
RequestSigner::on_response so the signer can satisfy a runtime
AAuth-Requirement and decide whether a retry would now succeed.
Fields§
§status: u16§requirement: Option<String>The AAuth-Requirement header value (e.g. agent-token,
auth-token; resource-token="…", interaction; url=…; code=…).
access: Option<String>An opaque AAuth-Access token the server issued (Case B).
location: Option<String>A Location for a pending interaction (202) to poll.
error: Option<String>A Signature-Error / AAuth-Error detail (diagnostics only).
Trait Implementations§
Source§impl Clone for AuthResponse
impl Clone for AuthResponse
Source§fn clone(&self) -> AuthResponse
fn clone(&self) -> AuthResponse
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 AuthResponse
impl Debug for AuthResponse
Source§impl Default for AuthResponse
impl Default for AuthResponse
Source§fn default() -> AuthResponse
fn default() -> AuthResponse
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for AuthResponse
impl RefUnwindSafe for AuthResponse
impl Send for AuthResponse
impl Sync for AuthResponse
impl Unpin for AuthResponse
impl UnsafeUnpin for AuthResponse
impl UnwindSafe for AuthResponse
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