pub struct DeviceTokenResponse200ApplicationJson {
pub access_token: String,
pub authentication_method: Option<String>,
pub expires_in: f64,
pub refresh_token: String,
pub user: DeviceTokenResponse200ApplicationJsonuser,
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: DeviceTokenResponse200ApplicationJsonuser§additional: BTreeMap<String, Value>Members the schema does not declare, kept as received.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for DeviceTokenResponse200ApplicationJson
impl<'de> Deserialize<'de> for DeviceTokenResponse200ApplicationJson
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 DeviceTokenResponse200ApplicationJson
impl RefUnwindSafe for DeviceTokenResponse200ApplicationJson
impl Send for DeviceTokenResponse200ApplicationJson
impl Sync for DeviceTokenResponse200ApplicationJson
impl Unpin for DeviceTokenResponse200ApplicationJson
impl UnsafeUnpin for DeviceTokenResponse200ApplicationJson
impl UnwindSafe for DeviceTokenResponse200ApplicationJson
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