Struct oauth2_core::device_authorization_grant::device_authorization_response::SuccessfulBody
source · pub struct SuccessfulBody {
pub device_code: DeviceCode,
pub user_code: UserCode,
pub verification_uri: VerificationUri,
pub verification_uri_complete: Option<VerificationUriComplete>,
pub expires_in: usize,
pub interval: Option<usize>,
/* private fields */
}
Fields§
§device_code: DeviceCode
§user_code: UserCode
§verification_uri: VerificationUri
§verification_uri_complete: Option<VerificationUriComplete>
§expires_in: usize
§interval: Option<usize>
Implementations§
source§impl SuccessfulBody
impl SuccessfulBody
pub fn new(
device_code: DeviceCode,
user_code: UserCode,
verification_uri: VerificationUri,
verification_uri_complete: Option<VerificationUriComplete>,
expires_in: usize,
interval: Option<usize>
) -> Self
pub fn interval(&self) -> Duration
pub fn set_extra(&mut self, extra: Map<String, Value>)
pub fn extra(&self) -> Option<&Map<String, Value>>
Trait Implementations§
source§impl Clone for SuccessfulBody
impl Clone for SuccessfulBody
source§fn clone(&self) -> SuccessfulBody
fn clone(&self) -> SuccessfulBody
Returns a copy 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 SuccessfulBody
impl Debug for SuccessfulBody
source§impl<'de> Deserialize<'de> for SuccessfulBody
impl<'de> Deserialize<'de> for SuccessfulBody
source§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