Structure
Market
public struct Market: Hashable, RawRepresentable, ExpressibleByStringLiteral
Represents a market by a two-letter country code.
ISO 3166-1 alpha-2
Relationships
Conforms To
Comparable
ExpressibleByStringLiteral
Hashable
RawRepresentable
Initializers
init?(rawValue:)
public init?(rawValue: String)
init(stringLiteral:)
public init(stringLiteral value: String)
init(code:)
public init(code value: String)
Creates a market.
Parameters
Name | Type | Description |
---|---|---|
value | String |
The ISO 3166-1 alpha-2 formatted country code. |
Properties
rawValue
let rawValue: String
code
var code: String
An ISO 3166-1 alpha-2 formatted country code.