Trait serde::ser::Error
[−]
[src]
pub trait Error: Sized + Error { fn custom<T: Into<String>>(msg: T) -> Self; fn invalid_value(msg: &str) -> Self { ... } }
Error
is a trait that allows a Serialize
to generically create a Serializer
error.
Required Methods
fn custom<T: Into<String>>(msg: T) -> Self
Raised when there is a general error when serializing a type.
Provided Methods
fn invalid_value(msg: &str) -> Self
Raised when a Serialize
was passed an incorrect value.