Enum kanidm_proto::oauth2::AuthorisationResponse
source · [−]pub enum AuthorisationResponse {
ConsentRequested {
client_name: String,
scopes: Vec<String>,
pii_scopes: Vec<String>,
consent_token: String,
},
Permitted,
}
Expand description
When we request to authorise, it can either prompt us for consent, or it can immediately be granted due the past grant.
Variants
ConsentRequested
Permitted
Trait Implementations
sourceimpl Clone for AuthorisationResponse
impl Clone for AuthorisationResponse
sourcefn clone(&self) -> AuthorisationResponse
fn clone(&self) -> AuthorisationResponse
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for AuthorisationResponse
impl Debug for AuthorisationResponse
sourceimpl<'de> Deserialize<'de> for AuthorisationResponse
impl<'de> Deserialize<'de> for AuthorisationResponse
sourcefn 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
sourceimpl Serialize for AuthorisationResponse
impl Serialize for AuthorisationResponse
Auto Trait Implementations
impl RefUnwindSafe for AuthorisationResponse
impl Send for AuthorisationResponse
impl Sync for AuthorisationResponse
impl Unpin for AuthorisationResponse
impl UnwindSafe for AuthorisationResponse
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more