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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

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 !=.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.