pub struct Claims<'a> {
pub aud: Cow<'a, str>,
pub exp: i64,
pub iat: i64,
pub iss: Cow<'a, str>,
pub nbf: i64,
pub sub: Cow<'a, str>,
pub grants: Grants,
}Fields§
§aud: Cow<'a, str>§exp: i64§iat: i64§iss: Cow<'a, str>§nbf: i64§sub: Cow<'a, str>§grants: GrantsMethods from Deref<Target = Grants>§
pub fn is_subset_of(&self, other: &Grants) -> bool
pub fn is_scoped(&self) -> bool
pub fn allowed_to_trade(&self) -> bool
pub fn allowed_to_marketdata(&self, venue: &MarketdataVenue) -> bool
Trait Implementations§
Source§impl<'de, 'a> Deserialize<'de> for Claims<'a>
impl<'de, 'a> Deserialize<'de> for Claims<'a>
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<'a> Freeze for Claims<'a>
impl<'a> RefUnwindSafe for Claims<'a>
impl<'a> Send for Claims<'a>
impl<'a> Sync for Claims<'a>
impl<'a> Unpin for Claims<'a>
impl<'a> UnwindSafe for Claims<'a>
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