pub struct ResourceOwnerPassword(/* private fields */);
Expand description
Resource owner’s password used directly as an authorization grant to obtain an access token.
Implementations§
Source§impl ResourceOwnerPassword
impl ResourceOwnerPassword
Sourcepub fn secret(&self) -> &String
pub fn secret(&self) -> &String
Get the secret contained within this ResourceOwnerPassword
.
§Security Warning
Leaking this value may compromise the security of the OAuth2 flow.
Sourcepub fn into_secret(self) -> String
pub fn into_secret(self) -> String
Get the secret contained within this ResourceOwnerPassword
.
§Security Warning
Leaking this value may compromise the security of the OAuth2 flow.
Trait Implementations§
Source§impl Clone for ResourceOwnerPassword
impl Clone for ResourceOwnerPassword
Source§fn clone(&self) -> ResourceOwnerPassword
fn clone(&self) -> ResourceOwnerPassword
Returns a copy 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 moreAuto Trait Implementations§
impl Freeze for ResourceOwnerPassword
impl RefUnwindSafe for ResourceOwnerPassword
impl Send for ResourceOwnerPassword
impl Sync for ResourceOwnerPassword
impl Unpin for ResourceOwnerPassword
impl UnwindSafe for ResourceOwnerPassword
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