AddressValidationError
struct AddressValidationError
extension AddressValidationError : Decodable, Encodable, Equatable
An error asocciated to an address validation.
-
Indicates the code of the validation error (e.g.
"INVALID_CITY"
)Declaration
Swift
let code: String
-
Indicates the name of the field that did not pass validation (e.g.
"city"
)Declaration
Swift
let field: String
-
Creates a new instance by decoding from the given decoder.
This initializer throws an error if reading from the decoder fails, or if the data read is corrupted or otherwise invalid.
Declaration
Swift
init(from decoder: Decoder) throws