Struct dgc::Dgc[][src]

pub struct Dgc {
    pub version: String,
    pub name: DgcName,
    pub date_of_birth: String,
    pub tests: Vec<Test>,
    pub vaccines: Vec<Vaccination>,
    pub recoveries: Vec<Recovery>,
}
Expand description

The main certificate.

Fields

version: String

The certificate version as per the published schemas.

name: DgcName

The name of the person addressed in the DGC.

date_of_birth: String

Date of Birth of the person addressed in the DGC. ISO 8601 date format restricted to range 1900-2099 or empty

tests: Vec<Test>

Test Group

vaccines: Vec<Vaccination>

Vaccination Group

recoveries: Vec<Recovery>

Recovery Group

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

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.