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 benilif the status is notokDeclaration
Swift
public let object: MDObject<T>? -
The relationships contained in this response
Note
This will benilif the status is notokDeclaration
Swift
public let relationships: [MDRelationship]? -
The token information returned during authentication
Note
This will be nil for requests outside of theauthendpointDeclaration
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 benilif the status isokDeclaration
Swift
public let errors: [MDError]?
View on GitHub
MDResult Structure Reference