pub struct DeviceAuthorizationResponseSuccessfulBody {
pub device_code: String,
pub user_code: String,
pub verification_uri: Url,
pub verification_uri_complete: Option<Url>,
pub expires_in: usize,
pub interval: Option<usize>,
/* private fields */
}
Fields§
§device_code: String
§user_code: String
§verification_uri: Url
§verification_uri_complete: Option<Url>
§expires_in: usize
§interval: Option<usize>
Implementations§
Source§impl SuccessfulBody
impl SuccessfulBody
pub fn new( device_code: String, user_code: String, verification_uri: Url, verification_uri_complete: Option<Url>, expires_in: usize, interval: Option<usize>, ) -> SuccessfulBody
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 duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const 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<SuccessfulBody, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SuccessfulBody, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for SuccessfulBody
impl Serialize for SuccessfulBody
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
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 Freeze for SuccessfulBody
impl RefUnwindSafe for SuccessfulBody
impl Send for SuccessfulBody
impl Sync for SuccessfulBody
impl Unpin for SuccessfulBody
impl UnwindSafe for SuccessfulBody
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