STRUCT
Problem
Contents
- Properties
metadatamessageslinksrawJsonStringtitletype
 - Methods
init(from:)encode(to:)==(_:_:)
 
public struct Problem: ProblemRepresentation
Problem response indicates an error occurred on the server. Responses of this type obey the schema defined in RFC-7807 (Problem Details for HTTP APIs).
Properties
metadata
public let metadata: Metadata?
messages
public let messages: [UserMessage]
links
public let links: [Link]
rawJsonString
public let rawJsonString: String?
title
public let title: Message?
type
public let type: ProblemType
Methods
init(from:)
public init(from decoder: Decoder) throws
Parameters
| Name | Description | 
|---|---|
| decoder | The decoder to read data from. | 
encode(to:)
public func encode(to encoder: Encoder) throws
Parameters
| Name | Description | 
|---|---|
| encoder | The encoder to write data to. | 
==(::)
public static func == (lhs: Problem, rhs: Problem) -> Bool
Returns a Bool value that indicates whether the receiver and a given object are equal.