Test
struct Test : Hashable
extension EUDCC.Test: Codable
The EUDCC Test Entry
-
Disease or agent targeted
Declaration
Swift
public let diseaseAgentTargeted: DiseaseAgentTargeted
-
Type of Test
Declaration
Swift
public let typeOfTest: TestType
-
Test Name
Declaration
Swift
public let testName: String
-
RAT Test name and manufacturer
Declaration
Swift
public let testNameAndManufacturer: String
-
Date/Time of sample collection
Declaration
Swift
public let dateOfSampleCollection: Date
-
Test Result
Declaration
Swift
public let testResult: TestResult
-
Testing Centre
Declaration
Swift
public let testingCentre: String
-
Country of Test
Declaration
Swift
public let countryOfTest: Country
-
Certificate Issuer
Declaration
Swift
public let certificateIssuer: String
-
Unique Certificate Identifier (UVCI)
Declaration
Swift
public let certificateIdentifier: String
-
init(diseaseAgentTargeted:
typeOfTest: testName: testNameAndManufacturer: dateOfSampleCollection: testResult: testingCentre: countryOfTest: certificateIssuer: certificateIdentifier: ) Creates a new instance of
EUDCC.Test
Declaration
Swift
public init( diseaseAgentTargeted: DiseaseAgentTargeted, typeOfTest: TestType, testName: String, testNameAndManufacturer: String, dateOfSampleCollection: Date, testResult: TestResult, testingCentre: String, countryOfTest: Country, certificateIssuer: String, certificateIdentifier: String )
Parameters
diseaseAgentTargeted
Disease or agent targeted
typeOfTest
Type of Test
testName
Test Name
testNameAndManufacturer
RAT Test name and manufacturer
dateOfSampleCollection
Date/Time of sample collection
testResult
Test Result
testingCentre
Testing Centre
countryOfTest
Country of Test
certificateIssuer
Certificate Issuer
certificateIdentifier
Unique Certificate Identifier (UVCI)
-
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.