MDResult
public struct MDResult<T> : Decodable where T : Decodable
Structure representing a result returned by the MangaDex API
-
The status of the result returned by the MangaDex API
Declaration
Swift
public let status: MDResultStatus
-
The decoded object contained in this response
Note
This will benil
if the status is notok
Declaration
Swift
public let object: MDObject<T>?
-
The relationships contained in this response
Note
This will benil
if the status is notok
Declaration
Swift
public let relationships: [MDRelationship]?
-
The token information returned during authentication
Note
This will be nil for requests outside of theauth
endpointDeclaration
Swift
public let token: MDToken?
-
The optional message in this result
Declaration
Swift
public let message: String?
-
The errors contained in this response
Note
This will benil
if the status isok
Declaration
Swift
public let errors: [MDError]?