pub struct UserAuthorizeResponse {
pub approved: bool,
pub id: Option<Id>,
pub new_access_token: Option<String>,
pub new_cba_challenge: Option<Vec<u8>>,
pub new_cba_token: Option<String>,
}Expand description
Authorize response.
Fields§
§approved: boolGrants permissions to the resource.
id: Option<Id>Identifies the user.
new_access_token: Option<String>May contains new access token.
Application backend must update it in the application client.
new_cba_challenge: Option<Vec<u8>>May contains new client-based authorization challenge.
Application backend must transfer this challenge to the application client
and repeat request after getting cba_challenge_sign from it.
Note that application backend also must transfer challenge state from the headers!
new_cba_token: Option<String>May contains new client token.
Application backend must update it in the application client.
Trait Implementations§
Source§impl Clone for UserAuthorizeResponse
impl Clone for UserAuthorizeResponse
Source§fn clone(&self) -> UserAuthorizeResponse
fn clone(&self) -> UserAuthorizeResponse
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 UserAuthorizeResponse
impl Debug for UserAuthorizeResponse
Source§impl<'de> Deserialize<'de> for UserAuthorizeResponse
impl<'de> Deserialize<'de> for UserAuthorizeResponse
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
Source§impl Hash for UserAuthorizeResponse
impl Hash for UserAuthorizeResponse
Source§impl PartialEq for UserAuthorizeResponse
impl PartialEq for UserAuthorizeResponse
Source§impl Serialize for UserAuthorizeResponse
impl Serialize for UserAuthorizeResponse
Source§impl ToSchema for UserAuthorizeResponse
impl ToSchema for UserAuthorizeResponse
impl Eq for UserAuthorizeResponse
impl StructuralPartialEq for UserAuthorizeResponse
Auto Trait Implementations§
impl Freeze for UserAuthorizeResponse
impl RefUnwindSafe for UserAuthorizeResponse
impl Send for UserAuthorizeResponse
impl Sync for UserAuthorizeResponse
impl Unpin for UserAuthorizeResponse
impl UnwindSafe for UserAuthorizeResponse
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.