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§
Implementations§
source§impl 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§
source§impl PartialEq<SqlType> for SqlType
impl PartialEq<SqlType> for SqlType
source§impl TryFrom<Item_result> for SqlType
impl TryFrom<Item_result> for SqlType
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§
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