pub struct DeviceTokenResponse {
pub access_token: String,
pub authentication_method: Option<String>,
pub expires_in: f64,
pub refresh_token: String,
pub user: DeviceTokenResponseUser,
pub additional: BTreeMap<String, Value>,
}Fields§
§access_token: StringBearer access token for authenticated Photon API requests.
authentication_method: Option<String>Authentication method used for the device login, when returned. Omitted for refresh grants.
expires_in: f64Access-token validity in seconds, derived from its expiry and issue times; defaults to 300 when unavailable.
refresh_token: StringRefresh token for the next refresh grant. Tokens rotate on every grant; replace the stored value with this one.
user: DeviceTokenResponseUser§additional: BTreeMap<String, Value>Trait Implementations§
Source§impl Clone for DeviceTokenResponse
impl Clone for DeviceTokenResponse
Source§impl Debug for DeviceTokenResponse
impl Debug for DeviceTokenResponse
Source§impl<'de> Deserialize<'de> for DeviceTokenResponse
impl<'de> Deserialize<'de> for DeviceTokenResponse
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
Auto Trait Implementations§
impl Freeze for DeviceTokenResponse
impl RefUnwindSafe for DeviceTokenResponse
impl Send for DeviceTokenResponse
impl Sync for DeviceTokenResponse
impl Unpin for DeviceTokenResponse
impl UnsafeUnpin for DeviceTokenResponse
impl UnwindSafe for DeviceTokenResponse
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