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 be nil if the status is not ok

    Declaration

    Swift

    public let object: MDObject<T>?
  • The relationships contained in this response

    Note

    This will be nil if the status is not ok

    Declaration

    Swift

    public let relationships: [MDRelationship]?
  • The token information returned during authentication

    Note

    This will be nil for requests outside of the auth endpoint

    Declaration

    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 be nil if the status is ok

    Declaration

    Swift

    public let errors: [MDError]?