pub struct CibaAuthResponse {
pub auth_req_id: String,
pub expires_in: u64,
pub interval: Option<u64>,
pub timestamp: Option<u64>,
pub others: HashMap<String, Value>,
}
Expand description
§CibaAuthResponse
The response of a CIBA Authentication Request
Fields§
§auth_req_id: String
Auth id
expires_in: u64
Seconds in which the auth_req_id is valid for
interval: Option<u64>
Seconds a client should wait in between poll requests.
timestamp: Option<u64>
Unix timestamp of when the auth response was received
others: HashMap<String, Value>
Extra key-value sent by the server
Implementations§
Source§impl CibaAuthResponse
impl CibaAuthResponse
Sourcepub fn get_auth_req_id(&self) -> &str
pub fn get_auth_req_id(&self) -> &str
Returns a reference to the authentication request identifier (auth_req_id
).
Sourcepub fn get_expires_in(&self) -> u64
pub fn get_expires_in(&self) -> u64
Returns the number of seconds for which the authentication request identifier is valid.
Sourcepub fn get_interval(&self) -> Option<u64>
pub fn get_interval(&self) -> Option<u64>
Returns the recommended polling interval (in seconds), if specified.
Trait Implementations§
Source§impl Clone for CibaAuthResponse
impl Clone for CibaAuthResponse
Source§fn clone(&self) -> CibaAuthResponse
fn clone(&self) -> CibaAuthResponse
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for CibaAuthResponse
impl Debug for CibaAuthResponse
Source§impl<'de> Deserialize<'de> for CibaAuthResponse
impl<'de> Deserialize<'de> for CibaAuthResponse
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 CibaAuthResponse
impl RefUnwindSafe for CibaAuthResponse
impl Send for CibaAuthResponse
impl Sync for CibaAuthResponse
impl Unpin for CibaAuthResponse
impl UnwindSafe for CibaAuthResponse
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