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§fn clone_from(&mut self, source: &Self)
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
Available on crate feature timing-resistant-secret-traits
only.
impl Hash for ResourceOwnerPassword
Available on crate feature
timing-resistant-secret-traits
only.Source§impl PartialEq for ResourceOwnerPassword
Available on crate feature timing-resistant-secret-traits
only.
impl PartialEq for ResourceOwnerPassword
Available on crate feature
timing-resistant-secret-traits
only.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