#[non_exhaustive]pub struct Claims {
pub iss: String,
pub sub: String,
pub aud: Vec<String>,
pub exp: i64,
pub iat: Option<i64>,
pub nbf: Option<i64>,
pub jti: Option<String>,
pub kind: Option<AccountKind>,
pub id: Option<String>,
pub mid: Option<String>,
pub fid: Option<String>,
pub scope: Option<String>,
}Expand description
The claims of a Silicon Accounts access token.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.iss: StringIssuer: the Silicon Accounts public URL.
sub: StringThe account uuid.
aud: Vec<String>The app id(s) the token was issued to.
exp: i64Expiry (unix seconds).
iat: Option<i64>Issued at (unix seconds).
nbf: Option<i64>Not before (unix seconds).
jti: Option<String>Token id.
kind: Option<AccountKind>Carbon or Silicon.
id: Option<String>The account’s public id when the token was issued (it may have changed since).
mid: Option<String>Membership id ({app_id}:{uuid}).
fid: Option<String>Token family id.
scope: Option<String>Space-separated scopes.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Claims
impl<'de> Deserialize<'de> for Claims
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Claims, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Claims, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for Claims
impl Serialize for Claims
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
impl StructuralPartialEq for Claims
Auto Trait Implementations§
impl Freeze for Claims
impl RefUnwindSafe for Claims
impl Send for Claims
impl Sync for Claims
impl Unpin for Claims
impl UnsafeUnpin for Claims
impl UnwindSafe for Claims
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