Struct oauth2_core::access_token_request::BodyWithResourceOwnerPasswordCredentialsGrant [−][src]
pub struct BodyWithResourceOwnerPasswordCredentialsGrant<SCOPE> where
SCOPE: Scope, {
pub username: String,
pub password: String,
pub scope: Option<ScopeParameter<SCOPE>>,
pub client_password: Option<ClientPassword>,
// some fields omitted
}Fields
username: Stringpassword: Stringscope: Option<ScopeParameter<SCOPE>>client_password: Option<ClientPassword>Implementations
pub fn new(
username: impl AsRef<str>,
password: impl AsRef<str>,
scope: Option<ScopeParameter<SCOPE>>
) -> Self
pub fn new_with_client_password(
username: impl AsRef<str>,
password: impl AsRef<str>,
scope: Option<ScopeParameter<SCOPE>>,
client_password: ClientPassword
) -> Self
pub fn try_from_t_with_string(
body: &BodyWithResourceOwnerPasswordCredentialsGrant<String>
) -> Result<Self, ScopeFromStrError>
Trait Implementations
impl<SCOPE: Clone> Clone for BodyWithResourceOwnerPasswordCredentialsGrant<SCOPE> where
SCOPE: Scope,
impl<SCOPE: Clone> Clone for BodyWithResourceOwnerPasswordCredentialsGrant<SCOPE> where
SCOPE: Scope,
impl<SCOPE: Debug> Debug for BodyWithResourceOwnerPasswordCredentialsGrant<SCOPE> where
SCOPE: Scope,
impl<SCOPE: Debug> Debug for BodyWithResourceOwnerPasswordCredentialsGrant<SCOPE> where
SCOPE: Scope,
impl<'de, SCOPE> Deserialize<'de> for BodyWithResourceOwnerPasswordCredentialsGrant<SCOPE> where
SCOPE: Scope,
SCOPE: Deserialize<'de>,
impl<'de, SCOPE> Deserialize<'de> for BodyWithResourceOwnerPasswordCredentialsGrant<SCOPE> where
SCOPE: Scope,
SCOPE: Deserialize<'de>,
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
Auto Trait Implementations
impl<SCOPE> RefUnwindSafe for BodyWithResourceOwnerPasswordCredentialsGrant<SCOPE> where
SCOPE: RefUnwindSafe,
impl<SCOPE> Send for BodyWithResourceOwnerPasswordCredentialsGrant<SCOPE> where
SCOPE: Send,
impl<SCOPE> Sync for BodyWithResourceOwnerPasswordCredentialsGrant<SCOPE> where
SCOPE: Sync,
impl<SCOPE> Unpin for BodyWithResourceOwnerPasswordCredentialsGrant<SCOPE> where
SCOPE: Unpin,
impl<SCOPE> UnwindSafe for BodyWithResourceOwnerPasswordCredentialsGrant<SCOPE> where
SCOPE: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more