Enum mentat_sql::Value
[−]
Owning dynamic type value. Value's type is typically dictated by SQLite (not by the caller).
See ValueRef
for a non-owning dynamic type value.
Variants
Null
The value is a NULL
value.
Integer(i64)
The value is a signed integer.
Real(f64)
The value is a floating point number.
Text(String)
The value is a text string.
Blob(Vec<u8>)
The value is a blob of data
Methods
impl Value
impl Value
pub fn data_type(&self) -> Type
pub fn data_type(&self) -> Type
Trait Implementations
impl Clone for Value
impl Clone for Value
fn clone(&self) -> Value
fn clone(&self) -> Value
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for Value
impl Debug for Value
fn fmt(&self, __arg_0: &mut Formatter) -> Result<(), Error>
fn fmt(&self, __arg_0: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter. Read more
impl FromSql for Value
impl FromSql for Value
fn column_result(value: ValueRef) -> Result<Value, FromSqlError>
fn column_result(value: ValueRef) -> Result<Value, FromSqlError>
impl ToSql for Value
impl ToSql for Value
impl From<i16> for Value
impl From<i16> for Value
impl From<isize> for Value
impl From<isize> for Value
impl From<bool> for Value
impl From<bool> for Value
impl<'a> From<&'a Value> for ValueRef<'a>
impl<'a> From<&'a Value> for ValueRef<'a>
impl From<i32> for Value
impl From<i32> for Value
impl From<Null> for Value
impl From<Null> for Value
impl From<i8> for Value
impl From<i8> for Value
impl From<u8> for Value
impl From<u8> for Value
impl From<Vec<u8>> for Value
impl From<Vec<u8>> for Value
impl From<u16> for Value
impl From<u16> for Value
impl From<u32> for Value
impl From<u32> for Value
impl From<String> for Value
impl From<String> for Value
impl From<i64> for Value
impl From<i64> for Value
impl<'a> From<ValueRef<'a>> for Value
impl<'a> From<ValueRef<'a>> for Value
impl From<f64> for Value
impl From<f64> for Value
impl PartialEq<Value> for Value
impl PartialEq<Value> for Value