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

Raised when there is a general error when serializing a type.

Provided Methods

Raised when a Serialize was passed an incorrect value.

Implementors