Struct sqlx_exasol::ExaTypeInfo
source · pub struct ExaTypeInfo { /* private fields */ }Expand description
Information about an Exasol data type.
Implementations§
source§impl ExaTypeInfo
impl ExaTypeInfo
sourcepub fn compatible(&self, other: &Self) -> bool
pub fn compatible(&self, other: &Self) -> bool
Checks compatibility with other data types.
Returns true if the ExaTypeInfo instance is compatible/bigger/able to
accommodate the other instance.
Trait Implementations§
source§impl Clone for ExaTypeInfo
impl Clone for ExaTypeInfo
source§fn clone(&self) -> ExaTypeInfo
fn clone(&self) -> ExaTypeInfo
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for ExaTypeInfo
impl Debug for ExaTypeInfo
source§impl<'de> Deserialize<'de> for ExaTypeInfo
impl<'de> Deserialize<'de> for ExaTypeInfo
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for ExaTypeInfo
impl Display for ExaTypeInfo
source§impl PartialEq<ExaTypeInfo> for ExaTypeInfo
impl PartialEq<ExaTypeInfo> for ExaTypeInfo
source§impl Serialize for ExaTypeInfo
impl Serialize for ExaTypeInfo
source§impl TypeInfo for ExaTypeInfo
impl TypeInfo for ExaTypeInfo
source§fn name(&self) -> &str
fn name(&self) -> &str
We’re going against sqlx here, but knowing the full data type definition
is actually very helpful when displaying error messages, so… ¯_(ツ)_/¯.
In fact, error messages seem to be the only place where this is being used, particularly when trying to decode a value but the data type provided by the database does not match/fit inside the Rust data type.
fn is_null(&self) -> bool
Auto Trait Implementations§
impl RefUnwindSafe for ExaTypeInfo
impl Send for ExaTypeInfo
impl Sync for ExaTypeInfo
impl Unpin for ExaTypeInfo
impl UnwindSafe for ExaTypeInfo
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