Struct oauth2_client::device_authorization_grant::provider_ext::DeviceAuthorizationRequestBody
source · pub struct DeviceAuthorizationRequestBody<SCOPE>where
SCOPE: Scope,{
pub client_id: Option<String>,
pub scope: Option<ScopeParameter<SCOPE>>,
/* private fields */
}
Fields§
§client_id: Option<String>
§scope: Option<ScopeParameter<SCOPE>>
Implementations§
source§impl<SCOPE> Body<SCOPE>where
SCOPE: Scope,
impl<SCOPE> Body<SCOPE>where
SCOPE: Scope,
pub fn new(
client_id: Option<String>,
scope: Option<ScopeParameter<SCOPE>>
) -> Body<SCOPE>
pub fn set_extra(&mut self, extra: Map<String, Value>)
pub fn extra(&self) -> Option<&Map<String, Value>>
pub fn try_from_t_with_string(
body: &Body<String>
) -> Result<Body<SCOPE>, ScopeFromStrError>
Trait Implementations§
source§impl<'de, SCOPE> Deserialize<'de> for Body<SCOPE>where
SCOPE: Scope + Deserialize<'de>,
impl<'de, SCOPE> Deserialize<'de> for Body<SCOPE>where
SCOPE: Scope + Deserialize<'de>,
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<Body<SCOPE>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<Body<SCOPE>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more