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<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::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§fn from(value: &ForeignKeyInteger<T>) -> Self
fn from(value: &ForeignKeyInteger<T>) -> Self
Converts to this type from the input type.
Source§impl From<&PrimaryKey<String>> for Value
impl From<&PrimaryKey<String>> for Value
Source§fn from(value: &PrimaryKey<String>) -> Self
fn from(value: &PrimaryKey<String>) -> Self
Converts to this type from the input type.
Source§impl From<&PrimaryKey<i32>> for Value
impl From<&PrimaryKey<i32>> for Value
Source§fn from(value: &PrimaryKeyInteger) -> Self
fn from(value: &PrimaryKeyInteger) -> Self
Converts to this type from the input type.
Source§impl<T> From<ForeignKey<i32, T>> for Valuewhere
T: TableBuilder + TablePrimaryKey,
impl<T> From<ForeignKey<i32, T>> for Valuewhere
T: TableBuilder + TablePrimaryKey,
Source§fn from(value: ForeignKeyInteger<T>) -> Self
fn from(value: ForeignKeyInteger<T>) -> Self
Converts to this type from the input type.
Source§impl From<PrimaryKey<String>> for Value
impl From<PrimaryKey<String>> for Value
Source§fn from(value: PrimaryKey<String>) -> Self
fn from(value: PrimaryKey<String>) -> Self
Converts to this type from the input type.
Source§impl From<PrimaryKey<i32>> for Value
impl From<PrimaryKey<i32>> for Value
Source§fn from(value: PrimaryKeyInteger) -> Self
fn from(value: PrimaryKeyInteger) -> Self
Converts to this type from the input type.
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