pub struct ClaimsSet {
pub issuer: Option<String>,
pub subject: Option<String>,
pub audience: Option<String>,
pub expiration_time: Option<Timestamp>,
pub not_before: Option<Timestamp>,
pub issued_at: Option<Timestamp>,
pub cwt_id: Option<Vec<u8>>,
pub rest: Vec<(ClaimName, Value)>,
}
Expand description
Structure representing a CWT Claims Set.
Fields§
§issuer: Option<String>
Issuer
subject: Option<String>
Subject
audience: Option<String>
Audience
expiration_time: Option<Timestamp>
Expiration Time
not_before: Option<Timestamp>
Not Before
issued_at: Option<Timestamp>
Issued At
cwt_id: Option<Vec<u8>>
CWT ID
rest: Vec<(ClaimName, Value)>
Any additional claims.
Trait Implementations§
source§impl AsCborValue for ClaimsSet
impl AsCborValue for ClaimsSet
source§impl CborSerializable for ClaimsSet
impl CborSerializable for ClaimsSet
source§fn from_slice(slice: &[u8]) -> Result<Self>
fn from_slice(slice: &[u8]) -> Result<Self>
Create an object instance from serialized CBOR data in a slice. This method will fail (with
CoseError::ExtraneousData
) if there is additional CBOR data after the object.source§impl PartialEq for ClaimsSet
impl PartialEq for ClaimsSet
impl StructuralPartialEq for ClaimsSet
Auto Trait Implementations§
impl Freeze for ClaimsSet
impl RefUnwindSafe for ClaimsSet
impl Send for ClaimsSet
impl Sync for ClaimsSet
impl Unpin for ClaimsSet
impl UnwindSafe for ClaimsSet
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