Enum serde_db::ser::SerializationError
source · 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 str, String),
}
Expand description
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
Fields
Error occured while parsing the SQL parameter from the given String representation
StructuralMismatch(&'static str)
The structure of the provided type does not fit to the required list of parameters
Type
Fields
The input type does not fit to the required database type
Range(&'static str, String)
The input value is too big or too small for the required database type
Trait Implementations§
source§impl Debug for SerializationError
impl Debug for SerializationError
source§impl Display for SerializationError
impl Display for SerializationError
source§impl Error for SerializationError
impl Error for SerializationError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl Error for SerializationError
impl Error for SerializationError
source§impl From<&'static str> for SerializationError
impl From<&'static str> for SerializationError
source§fn from(error: &'static str) -> SerializationError
fn from(error: &'static str) -> SerializationError
Converts to this type from the input type.