Struct oauth2_client::client_credentials_grant::provider_ext::BodyWithClientCredentialsGrant [−][src]
pub struct BodyWithClientCredentialsGrant<SCOPE> where
SCOPE: Scope, {
pub scope: Option<ScopeParameter<SCOPE>>,
pub client_password: Option<ClientPassword>,
// some fields omitted
}
Fields
scope: Option<ScopeParameter<SCOPE>>
client_password: Option<ClientPassword>
Implementations
pub fn new_with_client_password(
scope: Option<ScopeParameter<SCOPE>>,
client_password: ClientPassword
) -> BodyWithClientCredentialsGrant<SCOPE>
pub fn try_from_t_with_string(
body: &BodyWithClientCredentialsGrant<String>
) -> Result<BodyWithClientCredentialsGrant<SCOPE>, ScopeFromStrError>
Trait Implementations
impl<'de, SCOPE> Deserialize<'de> for BodyWithClientCredentialsGrant<SCOPE> where
SCOPE: Scope + Deserialize<'de>,
impl<'de, SCOPE> Deserialize<'de> for BodyWithClientCredentialsGrant<SCOPE> where
SCOPE: Scope + Deserialize<'de>,
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<BodyWithClientCredentialsGrant<SCOPE>, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<BodyWithClientCredentialsGrant<SCOPE>, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl<SCOPE> Serialize for BodyWithClientCredentialsGrant<SCOPE> where
SCOPE: Scope + Serialize,
impl<SCOPE> Serialize for BodyWithClientCredentialsGrant<SCOPE> where
SCOPE: Scope + Serialize,
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations
impl<SCOPE> RefUnwindSafe for BodyWithClientCredentialsGrant<SCOPE> where
SCOPE: RefUnwindSafe,
impl<SCOPE> Send for BodyWithClientCredentialsGrant<SCOPE> where
SCOPE: Send,
impl<SCOPE> Sync for BodyWithClientCredentialsGrant<SCOPE> where
SCOPE: Sync,
impl<SCOPE> Unpin for BodyWithClientCredentialsGrant<SCOPE> where
SCOPE: Unpin,
impl<SCOPE> UnwindSafe for BodyWithClientCredentialsGrant<SCOPE> where
SCOPE: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more