Enum diesel_oci::OciDataType
source · #[non_exhaustive]pub enum OciDataType {
Bool,
SmallInt,
Integer,
BigInt,
Float,
Double,
Text,
Binary,
Date,
Time,
Timestamp,
}
Expand description
A list of database side datatypes
This list closely mirrors the datatypes expected by diesel
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.
Bool
A boolean
SmallInt
A 2 byte integer
Integer
A 4 byte integer
BigInt
A 8 byte integer
Float
A 4 byte floating point values
Double
A 8 byte floating point value
Text
A text value
Binary
A binary value
Date
A date value
Time
A time value
Timestamp
A timestamp value
Trait Implementations§
source§impl Clone for OciDataType
impl Clone for OciDataType
source§fn clone(&self) -> OciDataType
fn clone(&self) -> OciDataType
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 OciDataType
impl Debug for OciDataType
source§impl Hash for OciDataType
impl Hash for OciDataType
source§impl PartialEq<OciDataType> for OciDataType
impl PartialEq<OciDataType> for OciDataType
source§fn eq(&self, other: &OciDataType) -> bool
fn eq(&self, other: &OciDataType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for OciDataType
impl Eq for OciDataType
impl StructuralEq for OciDataType
impl StructuralPartialEq for OciDataType
Auto Trait Implementations§
impl RefUnwindSafe for OciDataType
impl Send for OciDataType
impl Sync for OciDataType
impl Unpin for OciDataType
impl UnwindSafe for OciDataType
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
source§impl<T> IntoSql for T
impl<T> IntoSql for T
source§fn into_sql<T>(self) -> Self::Expressionwhere
Self: AsExpression<T> + Sized,
T: SqlType + TypedExpressionType,
fn into_sql<T>(self) -> Self::Expressionwhere Self: AsExpression<T> + Sized, T: SqlType + TypedExpressionType,
Convert
self
to an expression for Diesel’s query builder. Read moresource§fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expressionwhere
&'a Self: AsExpression<T>,
T: SqlType + TypedExpressionType,
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expressionwhere &'a Self: AsExpression<T>, T: SqlType + TypedExpressionType,
Convert
&self
to an expression for Diesel’s query builder. Read more