Struct dgc::DgcContainer [−][src]
pub struct DgcContainer {
pub issuer: String,
pub issued_at: IntegerOrFloat,
pub expires_at: Option<IntegerOrFloat>,
pub certs: HashMap<usize, Dgc>,
}
Expand description
The main container for one or more DGC entries.
Fields
issuer: String
The issuer of the data in the container
issued_at: IntegerOrFloat
A unix timestamp representing the moment in time when the data in the container was issued
expires_at: Option<IntegerOrFloat>
A unix timestamp representing the moment in time when the data in the container is to be considered expired
certs: HashMap<usize, Dgc>
A collection of certificates embedded in the container
Implementations
Updates all the ids in all the entries with their descriptive counterparts using the official valueset.
Useful shortcut to print all the details in a more descriptive way.
Trait Implementations
Needs a specialized deserializer to be able to deal with keys as integers
Deserialize this value from the given Serde deserializer. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for DgcContainer
impl Send for DgcContainer
impl Sync for DgcContainer
impl Unpin for DgcContainer
impl UnwindSafe for DgcContainer
Blanket Implementations
Mutably borrows from an owned value. Read more