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
Serde(String)
General Error, used by the serde framework.
Parse
Parsing the target SQL parameter from the given String representation failed
Fields of Parse
value: String | value |
db_type: &'static str | Target SQL type |
cause: Option<Box<Error + Send + Sync + 'static>> | Cause |
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: &'static str | Type of the target db parameter |
Range(&'static str, &'static str)
The input value is too big or too small for the required database type.
Trait Implementations
impl Error for SerializationError
[src]
impl Error for SerializationError
fn description(&self) -> &str
[src]
fn description(&self) -> &str
This method is soft-deprecated. Read more
fn cause(&self) -> Option<&Error>
[src]
fn cause(&self) -> Option<&Error>
The lower-level cause of this error, if any. Read more
impl From<&'static str> for SerializationError
[src]
impl From<&'static str> for SerializationError
fn from(error: &'static str) -> SerializationError
[src]
fn from(error: &'static str) -> SerializationError
Performs the conversion.
impl Error for SerializationError
[src]
impl Error for SerializationError
fn custom<T: Display>(msg: T) -> Self
[src]
fn custom<T: Display>(msg: T) -> Self
Used when a [Serialize
] implementation encounters any error while serializing a type. Read more
impl Debug for SerializationError
[src]
impl Debug for SerializationError
fn fmt(&self, fmt: &mut Formatter) -> Result
[src]
fn fmt(&self, fmt: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Display for SerializationError
[src]
impl Display for SerializationError
Auto Trait Implementations
impl Send for SerializationError
impl Send for SerializationError
impl Sync for SerializationError
impl Sync for SerializationError