Enum serde_db::ser::SerializationError[][src]

pub enum SerializationError {
    Serde(String),
    Parse {
        value: String,
        db_type: &'static str,
        cause: Option<Box<Error + Send + Sync + 'static>>,
    },
    StructuralMismatch(&'static str),
    Type {
        value_type: &'static str,
        db_type: &'static str,
    },
    Range(&'static str, &'static str),
}

Error that can occur while serializing a standard rust type or struct into a SQL parameter.

Variants

General Error, used by the serde framework.

Parsing the target SQL parameter from the given String representation failed

Fields of Parse

value

Target SQL type

Cause

The structure of the provided type does not fit to the required list of parameters

The input type does not fit to the required database type.

Fields of Type

Type of the value that is being serialized

Type of the target db parameter

The input value is too big or too small for the required database type.

Trait Implementations

impl Error for SerializationError
[src]

This method is soft-deprecated. Read more

The lower-level cause of this error, if any. Read more

impl From<&'static str> for SerializationError
[src]

Performs the conversion.

impl Error for SerializationError
[src]

Used when a [Serialize] implementation encounters any error while serializing a type. Read more

impl Debug for SerializationError
[src]

Formats the value using the given formatter. Read more

impl Display for SerializationError
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations