Enum sea_query::value::Value [−][src]
pub enum Value {
}Expand description
Value variants
Variants
Bool(bool)TinyInt(i8)SmallInt(i16)Int(i32)BigInt(i64)TinyUnsigned(u8)SmallUnsigned(u16)Unsigned(u32)BigUnsigned(u64)Float(f32)Double(f64)This is supported on crate feature
with-json only.DateTime(Box<NaiveDateTime>)This is supported on crate feature
with-chrono only.This is supported on crate feature
with-uuid only.Implementations
impl Value[src]
impl Value[src]pub fn is_date_time(&self) -> bool[src]
pub fn as_ref_date_time(&self) -> &NaiveDateTime[src]
Trait Implementations
impl From<NaiveDateTime> for Value[src]
impl From<NaiveDateTime> for Value[src]This is supported on crate feature
with-chrono only.fn from(x: NaiveDateTime) -> Value[src]
fn from(x: NaiveDateTime) -> Value[src]Performs the conversion.
impl ToSql for Value[src]
impl ToSql for Value[src]fn to_sql(
&self,
ty: &Type,
out: &mut BytesMut
) -> Result<IsNull, Box<dyn Error + Sync + Send>>[src]
fn to_sql(
&self,
ty: &Type,
out: &mut BytesMut
) -> Result<IsNull, Box<dyn Error + Sync + Send>>[src]Converts the value of self into the binary format of the specified
Postgres Type, appending it to out. Read more
impl StructuralPartialEq for Value[src]
Auto Trait Implementations
impl RefUnwindSafe for Value
impl Send for Value
impl Sync for Value
impl Unpin for Value
impl UnwindSafe for Value
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> BorrowToSql for T where
T: ToSql, [src]
impl<T> BorrowToSql for T where
T: ToSql, [src]pub fn borrow_to_sql(&self) -> &dyn ToSql[src]
pub fn borrow_to_sql(&self) -> &dyn ToSql[src]Returns a reference to self as a ToSql trait object.
impl<V> IntoValueTuple for V where
V: Into<Value>, [src]
impl<V> IntoValueTuple for V where
V: Into<Value>, [src]pub fn into_value_tuple(Self) -> ValueTuple[src]
impl<T> Same<T> for T
impl<T> Same<T> for Ttype Output = T
type Output = TShould always be Self
impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, [src]type Owned = T
type Owned = TThe resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn to_owned(&self) -> T[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)[src]
pub fn clone_into(&self, target: &mut T)[src]🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,