scruffy/error
A type describing Scryfall’s Error object, returned whenever a request to the API is unsuccessful.
See https://scryfall.com/docs/api/errors for the upstream reference.
Types
An error response from the Scryfall API.
pub type ScryfallError {
ScryfallError(
status: Int,
code: String,
details: String,
error_type: option.Option(String),
warnings: option.Option(List(String)),
)
}
Constructors
-
ScryfallError( status: Int, code: String, details: String, error_type: option.Option(String), warnings: option.Option(List(String)), )
Values
pub fn scryfall_error_schema() -> glon.JsonSchema(ScryfallError)