pub struct OAuth2Password {
pub username: String,
pub password: String,
pub client_id: Option<String>,
pub client_secret: Option<String>,
pub grant_type: Option<String>,
pub scope: Option<Vec<String>>,
}Expand description
OAuth2 authentication props for a password flow
Details: https://datatracker.ietf.org/doc/html/rfc6749#section-4.3
Fields§
§username: String§password: String§client_id: Option<String>§client_secret: Option<String>§grant_type: Option<String>§scope: Option<Vec<String>>Trait Implementations§
Source§impl Clone for OAuth2Password
impl Clone for OAuth2Password
Source§fn clone(&self) -> OAuth2Password
fn clone(&self) -> OAuth2Password
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 OAuth2Password
impl Debug for OAuth2Password
Source§impl Default for OAuth2Password
impl Default for OAuth2Password
Source§fn default() -> OAuth2Password
fn default() -> OAuth2Password
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for OAuth2Password
impl RefUnwindSafe for OAuth2Password
impl Send for OAuth2Password
impl Sync for OAuth2Password
impl Unpin for OAuth2Password
impl UnwindSafe for OAuth2Password
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