Trait serde::ser::Error [] [src]

pub trait Error: Sized + Error {
    fn custom<T: Display>(msg: T) -> 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.

Implementors