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

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

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

Variants

Serde(String)

Error occured within the serde framework

Parse

Error occured while parsing the SQL parameter from the given String representation

Fields of Parse

value: String

value

db_type: String

Target SQL type

cause: Option<Box<dyn Error + Send + Sync + 'static>>

The causing Error

StructuralMismatch(&'static str)

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

Type

The input type does not fit to the required database type

Fields of Type

value_type: &'static str

Type of the value that is being serialized

db_type: String

Type of the target db parameter

Range(&'static strString)

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

Trait Implementations

impl Debug for SerializationError[src]

impl Display for SerializationError[src]

impl Error for SerializationError[src]

impl Error for SerializationError[src]

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

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.