pub enum ConversionError {
FromPostgres {
pg_type: String,
message: String,
},
ToPostgres {
pg_type: String,
message: String,
},
UnsupportedGeometry {
geometry_type: String,
},
InvalidSrid {
srid: i32,
},
UnexpectedNull {
column: String,
},
TypeMismatch {
expected: String,
actual: String,
},
InvalidDimension {
dimension: u32,
},
}Expand description
Type conversion errors
Variants§
FromPostgres
Failed to convert PostgreSQL type to OxiGDAL type
ToPostgres
Failed to convert OxiGDAL type to PostgreSQL type
UnsupportedGeometry
Unsupported geometry type
InvalidSrid
Invalid SRID
UnexpectedNull
NULL value encountered
TypeMismatch
Type mismatch
InvalidDimension
Invalid dimension
Trait Implementations§
Source§impl Debug for ConversionError
impl Debug for ConversionError
Source§impl Display for ConversionError
impl Display for ConversionError
Source§impl Error for ConversionError
impl Error for ConversionError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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 From<ConversionError> for PostGisError
impl From<ConversionError> for PostGisError
Source§fn from(source: ConversionError) -> Self
fn from(source: ConversionError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ConversionError
impl RefUnwindSafe for ConversionError
impl Send for ConversionError
impl Sync for ConversionError
impl Unpin for ConversionError
impl UnsafeUnpin for ConversionError
impl UnwindSafe for ConversionError
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