Enum mustache::EncoderError
[−]
[src]
pub enum EncoderError { NestedOptions, UnsupportedType, MissingElements, KeyIsNotString, NoDataToEncode, Message(String), // some variants omitted }
Error type to represent encoding failure.
This type is not intended to be matched exhaustively as new variants may be added in future without a version bump.
Variants
NestedOptions
UnsupportedType
MissingElements
KeyIsNotString
NoDataToEncode
Message(String)
Trait Implementations
impl Debug for Error
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Error for Error
[src]
fn custom<T: Display>(msg: T) -> Self
[src]
Used when a [Serialize
] implementation encounters any error while serializing a type. Read more
impl Display for Error
[src]
fn fmt(&self, f: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Error for Error
[src]
fn description(&self) -> &str
[src]
A short description of the error. Read more
fn cause(&self) -> Option<&Error>
1.0.0[src]
The lower-level cause of this error, if any. Read more