Enum serde_db::ser::SerializationError
source · pub enum SerializationError {
Serde(String),
Parse {
value: String,
db_type: &'static str,
cause: Option<Box<dyn Error + Send + Sync + 'static>>,
},
StructuralMismatch(&'static str),
Type {
value_type: &'static str,
db_type: &'static str,
},
Range(&'static str, &'static str),
}
Expand description
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
Fields
Parsing the target SQL parameter from the given String representation failed
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, &'static str)
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
source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§fn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
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.