pub enum SerializationError {
    Serde(String),
    Parse {
        value: String,
        db_type: String,
        cause: Option<Box<dyn Error + Sync + Send>>,
    },
    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.
source§impl From<SerializationError> for HdbError
 
impl From<SerializationError> for HdbError
source§fn from(source: SerializationError) -> Self
 
fn from(source: SerializationError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for SerializationError
impl Send for SerializationError
impl Sync for SerializationError
impl Unpin for SerializationError
impl !UnwindSafe for SerializationError
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
 
impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
 
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more