pub enum Value {
Text(String),
Integer(i32),
Boolean(i32),
Identifier(String),
Blob(Vec<u8>),
Json(Vec<u8>),
Null,
}
Expand description
A value for a column
Variants§
Text(String)
A text (String) value
Integer(i32)
An integer (i32) value
Boolean(i32)
A boolean (i32) value (0 or 1) This is because SQLite does not have a boolean type
Identifier(String)
Identifier Key type (Primary / Forigen Key) which is a UUID
Blob(Vec<u8>)
A binary blob value (vector of bytes)
Json(Vec<u8>)
JSON blob
Null
A NULL value
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Value
impl<'de> Deserialize<'de> for Value
Source§fn deserialize<D>(
deserializer: D,
) -> Result<Value, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<Value, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<T> From<&ForeignKey<i32, T>> for Valuewhere
T: TableBuilder + TablePrimaryKey,
impl<T> From<&ForeignKey<i32, T>> for Valuewhere
T: TableBuilder + TablePrimaryKey,
Source§impl<T> From<ForeignKey<i32, T>> for Valuewhere
T: TableBuilder + TablePrimaryKey,
impl<T> From<ForeignKey<i32, T>> for Valuewhere
T: TableBuilder + TablePrimaryKey,
Source§impl Serialize for Value
impl Serialize for Value
Serialize a Value
Source§fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for Value
impl StructuralPartialEq for Value
Auto Trait Implementations§
impl Freeze for Value
impl RefUnwindSafe for Value
impl Send for Value
impl Sync for Value
impl Unpin for Value
impl UnwindSafe for Value
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