pub struct NewToken {
pub username: Option<String>,
pub password: Option<String>,
pub client_id: Option<String>,
pub client_key: Option<String>,
pub grant_type: Option<String>,
pub redirect_uri: Option<String>,
pub code: Option<String>,
pub device_code: Option<String>,
pub refresh_token: Option<String>,
}Fields§
§username: Option<String>The username being authenticated (for password grant).
password: Option<String>The password assoicated with the username being authenticated (for password grant).
client_id: Option<String>The client_id being authenticated (for device_code grant).
client_key: Option<String>The client_key being authenticated (optional for authorization_code grant).
grant_type: Option<String>The OAuth2 grant type being used; either password, authorization_code or refresh_token.
redirect_uri: Option<String>The client’s redirect URI (for authorization_code grant).
code: Option<String>The authorization code associated with the request (for authorization_code grant).
device_code: Option<String>The device code associated with the request (for device_code grant)
refresh_token: Option<String>The refresh token associated with the request (for refresh_token grant).
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for NewToken
impl<'de> Deserialize<'de> for NewToken
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
impl StructuralPartialEq for NewToken
Auto Trait Implementations§
impl Freeze for NewToken
impl RefUnwindSafe for NewToken
impl Send for NewToken
impl Sync for NewToken
impl Unpin for NewToken
impl UnsafeUnpin for NewToken
impl UnwindSafe for NewToken
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