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
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for Dgc
impl UnwindSafe for Dgc
Blanket Implementations
Mutably borrows from an owned value. Read more