pub enum Error {
Show 17 variants
JsonTypeError {
expected: JsonType,
got: JsonType,
},
JsonObjectInvalidField(String),
JsonObjectMissingField(String),
InvalidRole(String),
InvalidModelKind(String),
InvalidPdlToken(String),
InvalidMediaType(String),
NoTry,
ReqwestError(Error),
JsonError(Error),
JsonSerdeError(Error),
FileError(FileError),
TeraError(Error),
Base64DecodeError(DecodeError),
WrongSchema(String),
ServerError {
status_code: u16,
body: Result<String, Error>,
},
UnsupportedMediaFormat {
extension: Option<String>,
},
}
Variants§
JsonTypeError
JsonObjectInvalidField(String)
JsonObjectMissingField(String)
InvalidRole(String)
InvalidModelKind(String)
InvalidPdlToken(String)
InvalidMediaType(String)
NoTry
If you see this error, there must be a bug in this library
ReqwestError(Error)
JsonError(Error)
JsonSerdeError(Error)
FileError(FileError)
TeraError(Error)
Base64DecodeError(DecodeError)
WrongSchema(String)
ServerError
UnsupportedMediaFormat
Trait Implementations§
source§impl From<DecodeError> for Error
impl From<DecodeError> for Error
source§fn from(e: DecodeError) -> Error
fn from(e: DecodeError) -> Error
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more