Enum geekorm_core::builder::values::Value
source · pub enum Value {
Text(String),
Integer(i32),
Boolean(i32),
Identifier(String),
Blob(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)
Null
A NULL value
Trait Implementations§
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.
source§impl PartialEq for Value
impl PartialEq for Value
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)