pub enum Grant {
ClientCredentials {
scope: Option<String>,
},
Password {
username: String,
password: String,
credtype: Option<String>,
scope: Option<String>,
},
RefreshToken {
refresh_token: String,
scope: Option<String>,
},
}Variants§
ClientCredentials
Client credentials grant (company / application token).
Password
Password grant.
RefreshToken
Refresh token grant.
Trait Implementations§
Auto Trait Implementations§
impl Forget for Grant
impl Freeze for Grant
impl RefUnwindSafe for Grant
impl Send for Grant
impl Sync for Grant
impl Unpin for Grant
impl UnsafeUnpin for Grant
impl UnwindSafe for Grant
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