pub struct Bound<'a> {
pub pass: &'a str,
pub iss: &'a str,
pub sub: &'a str,
pub aud: &'a str,
pub iat: u64,
pub exp: u64,
pub grants: &'a BTreeSet<&'a str>,
}Expand description
What a binding must name of its pass: the pass’s digest, issuer, holder, audience and lifetime, and exactly the grants its rights rest on.
Fields§
§pass: &'a strThe SHA-256, lowercase hex, of the pass’s exact bytes.
iss: &'a strThe pass’s issuer.
sub: &'a strThe pass’s holder.
aud: &'a strThe pass’s audience.
iat: u64The pass’s issue instant.
exp: u64The pass’s first invalid instant.
grants: &'a BTreeSet<&'a str>The grants the pass’s rights rest on.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Bound<'a>
impl<'a> RefUnwindSafe for Bound<'a>
impl<'a> Send for Bound<'a>
impl<'a> Sync for Bound<'a>
impl<'a> Unpin for Bound<'a>
impl<'a> UnsafeUnpin for Bound<'a>
impl<'a> UnwindSafe for Bound<'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