#[non_exhaustive]
#[repr(i8)]
pub enum SqlType {
Int,
Real,
String,
Decimal,
}Expand description
Enum representing possible SQL result types
This simply represents the possible types, but does not contain any values.
SqlResult is the corresponding enum that actually contains data.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Int
Integer result
Real
Real result
String
String result
Decimal
Decimal result
Implementations
sourceimpl SqlType
impl SqlType
sourcepub fn to_item_result(&self) -> Item_result
pub fn to_item_result(&self) -> Item_result
Convert this enum to a SQL Item_result. This is only useful if you
work with udf_sys bindings directly.
sourcepub fn display_name(&self) -> &'static str
pub fn display_name(&self) -> &'static str
Small helper function to get a displayable type name.
Trait Implementations
sourceimpl TryFrom<Item_result> for SqlType
impl TryFrom<Item_result> for SqlType
sourcefn try_from(tag: Item_result) -> Result<Self, Self::Error>
fn try_from(tag: Item_result) -> Result<Self, Self::Error>
Create an SqlType from an Item_result, located in the bindings
module.
impl Copy for SqlType
impl Eq for SqlType
impl StructuralEq for SqlType
impl StructuralPartialEq for SqlType
Auto Trait Implementations
impl RefUnwindSafe for SqlType
impl Send for SqlType
impl Sync for SqlType
impl Unpin for SqlType
impl UnwindSafe for SqlType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more