VaccineOrProphylaxis
struct VaccineOrProphylaxis : Hashable
extension EUDCC.Vaccination.VaccineOrProphylaxis: Codable
The EUDCC vaccination type of the vaccine or prophylaxis used.
-
The string value
Declaration
Swift
public let value: String
-
Creates a new instance of
EUDCC.Vaccination.VaccineOrProphylaxis
Declaration
Swift
public init(value: String)
Parameters
value
The string value
-
The WellKnownValue
See moreDeclaration
Swift
enum WellKnownValue : String, Codable, Hashable, CaseIterable
-
The WellKnownValue if available
Declaration
Swift
var wellKnownValue: WellKnownValue? { get }
-
Creates a new instance by decoding from the given decoder.
Declaration
Swift
public init(from decoder: Decoder) throws
Parameters
decoder
The decoder to read data from.
-
Encodes this value into the given encoder.
Declaration
Swift
public func encode(to encoder: Encoder) throws
Parameters
encoder
The encoder to write data to.