Enum serde_url_params::Error [−][src]
Represents all possible errors that can occur when serializing into URL parameters.
Variants
Extern(Box<Error>)
External error caused by e.g. utf8 string conversion or io.
Unsupported(String)
Error when tried to serialize an unsupported type.
Custom(String)
Custom error caused by any error while serializing a type.
Methods
impl Error
[src]
impl Error
pub fn unsupported<T: Display>(msg: T) -> Self
[src]
pub fn unsupported<T: Display>(msg: T) -> Self
Creates a new error when a type is not supported for serializing into URL parameters.
Trait Implementations
impl Debug for Error
[src]
impl Debug for Error
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Display for Error
[src]
impl Display for Error
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Error for Error
[src]
impl Error for Error
fn description(&self) -> &str
[src]
fn description(&self) -> &str
This method is soft-deprecated. Read more
fn cause(&self) -> Option<&Error>
[src]
fn cause(&self) -> Option<&Error>
The lower-level cause of this error, if any. Read more
impl Error for Error
[src]
impl Error for Error
fn custom<T: Display>(msg: T) -> Error
[src]
fn custom<T: Display>(msg: T) -> Error
Used when a [Serialize
] implementation encounters any error while serializing a type. Read more
impl From<Error> for Error
[src]
impl From<Error> for Error
impl From<FromUtf8Error> for Error
[src]
impl From<FromUtf8Error> for Error
fn from(err: FromUtf8Error) -> Self
[src]
fn from(err: FromUtf8Error) -> Self
Performs the conversion.