Enum sendgrid::errors::SendgridErrorKind
[−]
pub enum SendgridErrorKind { Msg(String), Io(Error), JSONDecode(Error), ReqwestError(Error), InvalidFilename, }
The kind of an error.
Variants
Msg(String)
A convenient variant for String.
Io(Error)
JSONDecode(Error)
ReqwestError(Error)
InvalidFilename
Methods
impl SendgridErrorKind
fn description(&self) -> &str
A string describing the error kind.
Trait Implementations
impl Debug for SendgridErrorKind
impl Display for SendgridErrorKind
impl<'a> From<&'a str> for SendgridErrorKind
impl From<String> for SendgridErrorKind
impl From<SendgridError> for SendgridErrorKind
fn from(e: SendgridError) -> Self
Performs the conversion.