pub struct DebugTokenData {
pub is_valid: bool,
pub expires_at: i64,
pub issued_at: i64,
pub scopes: Vec<String>,
pub user_id: String,
pub token_type: Option<String>,
pub application: Option<String>,
pub data_access_expires_at: Option<i64>,
}Expand description
Inner payload of a debug-token response.
Fields§
§is_valid: boolWhether the token is currently valid.
expires_at: i64Unix timestamp when the token expires.
issued_at: i64Unix timestamp when the token was issued.
scopes: Vec<String>OAuth scopes granted to the token.
user_id: StringApp-scoped user ID.
token_type: Option<String>Token type: “USER” or “APP”.
application: Option<String>Name of the application.
data_access_expires_at: Option<i64>Unix timestamp when the app’s data access expires.
Trait Implementations§
Source§impl Debug for DebugTokenData
impl Debug for DebugTokenData
Source§impl<'de> Deserialize<'de> for DebugTokenData
impl<'de> Deserialize<'de> for DebugTokenData
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 DebugTokenData
impl RefUnwindSafe for DebugTokenData
impl Send for DebugTokenData
impl Sync for DebugTokenData
impl Unpin for DebugTokenData
impl UnsafeUnpin for DebugTokenData
impl UnwindSafe for DebugTokenData
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