Struct passport::PassportClaims
source · [−]pub struct PassportClaims {
pub destination: HashMap<IdentityForms, Vec<String>>,
pub origin: Identity,
pub issued_at: Option<u64>,
pub expires_at: Option<u64>,
pub media_keys: Vec<MediaKey>,
}
Expand description
Extended JWT Claims for passports
Fields
destination: HashMap<IdentityForms, Vec<String>>
The destination identity claim. See [section 5.2.1] of the RFC.
origin: Identity
The origin identity claim. See [section 5.2.1] of the RFC.
issued_at: Option<u64>
The unix timestamp for when the claim was issued.
expires_at: Option<u64>
The unix timestamp for when the claim expires.
media_keys: Vec<MediaKey>
Media security key digests. See [section 5.2.2] of the RFC.
Trait Implementations
sourceimpl Clone for PassportClaims
impl Clone for PassportClaims
sourcefn clone(&self) -> PassportClaims
fn clone(&self) -> PassportClaims
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for PassportClaims
impl Debug for PassportClaims
sourceimpl<'de> Deserialize<'de> for PassportClaims
impl<'de> Deserialize<'de> for PassportClaims
sourcefn 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
sourceimpl Serialize for PassportClaims
impl Serialize for PassportClaims
Auto Trait Implementations
impl RefUnwindSafe for PassportClaims
impl Send for PassportClaims
impl Sync for PassportClaims
impl Unpin for PassportClaims
impl UnwindSafe for PassportClaims
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more