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.TestDeclaration
Swift
public init( diseaseAgentTargeted: DiseaseAgentTargeted, typeOfTest: TestType, testName: String, testNameAndManufacturer: String, dateOfSampleCollection: Date, testResult: TestResult, testingCentre: String, countryOfTest: Country, certificateIssuer: String, certificateIdentifier: String )Parameters
diseaseAgentTargetedDisease or agent targeted
typeOfTestType of Test
testNameTest Name
testNameAndManufacturerRAT Test name and manufacturer
dateOfSampleCollectionDate/Time of sample collection
testResultTest Result
testingCentreTesting Centre
countryOfTestCountry of Test
certificateIssuerCertificate Issuer
certificateIdentifierUnique Certificate Identifier (UVCI)
-
Creates a new instance by decoding from the given decoder.
Declaration
Swift
public init(from decoder: Decoder) throwsParameters
decoderThe decoder to read data from.
-
Encodes this value into the given encoder.
Declaration
Swift
public func encode(to encoder: Encoder) throwsParameters
encoderThe encoder to write data to.
Test Structure Reference