Enum kanidm_proto::oauth2::GrantTypeReq
source · pub enum GrantTypeReq {
AuthorizationCode {
code: String,
redirect_uri: Url,
code_verifier: Option<String>,
},
ClientCredentials {
scope: Option<BTreeSet<String>>,
},
RefreshToken {
refresh_token: String,
scope: Option<BTreeSet<String>>,
},
DeviceCode {
device_code: String,
scope: Option<BTreeSet<String>>,
},
}
Variants§
Trait Implementations§
source§impl Debug for GrantTypeReq
impl Debug for GrantTypeReq
source§impl<'de> Deserialize<'de> for GrantTypeReq
impl<'de> Deserialize<'de> for GrantTypeReq
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 From<GrantTypeReq> for AccessTokenRequest
impl From<GrantTypeReq> for AccessTokenRequest
source§fn from(req: GrantTypeReq) -> AccessTokenRequest
fn from(req: GrantTypeReq) -> AccessTokenRequest
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for GrantTypeReq
impl RefUnwindSafe for GrantTypeReq
impl Send for GrantTypeReq
impl Sync for GrantTypeReq
impl Unpin for GrantTypeReq
impl UnwindSafe for GrantTypeReq
Blanket Implementations§
§impl<'a, T> AsTaggedExplicit<'a> for Twhere
T: 'a,
impl<'a, T> AsTaggedExplicit<'a> for Twhere
T: 'a,
§impl<'a, T> AsTaggedImplicit<'a> for Twhere
T: 'a,
impl<'a, T> AsTaggedImplicit<'a> for Twhere
T: 'a,
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