Country
struct Country : Hashable
extension EUDCC.Country: Codable
The EUDCC Country
-
The string value
Declaration
Swift
public let value: String
-
Creates a new instance of
EUDCC.Test.CountryDeclaration
Swift
public init(value: String)Parameters
valueThe string value
-
Localized string of Country
Declaration
Swift
func localizedString( locale: Locale = .current ) -> String?Parameters
localeThe Locale. Default value
.current
-
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.
Country Structure Reference