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 duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ResourceOwnerPassword
impl Debug for ResourceOwnerPassword
Source§impl Hash for ResourceOwnerPassword
impl Hash for ResourceOwnerPassword
Source§impl PartialEq for ResourceOwnerPassword
impl PartialEq for ResourceOwnerPassword
impl Eq for ResourceOwnerPassword
Auto 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