pub enum ValueType {
String,
Int,
Bool,
Float,
Json,
Blob,
Time,
}Expand description
Typed representation of a condition value column.
Variants§
String
Human readable UTF-8 string payload.
Int
Signed integer payload stored in int_value (i32).
Bool
Boolean payload stored in bool_value.
Float
Floating point payload stored in float_value.
Json
JSON encoded blob stored in text_value (f64).
Blob
Arbitrary blob (stored as text) stored in text_value.
Time
Timestamp payload stored in time_value.
Implementations§
Source§impl ValueType
impl ValueType
Sourcepub fn from_identifier(value: &str) -> Option<Self>
pub fn from_identifier(value: &str) -> Option<Self>
Builds a ValueType from the identifier stored in SQLite.
Sourcepub fn is_textual(&self) -> bool
pub fn is_textual(&self) -> bool
True when the value is backed by the text_value column.
Sourcepub fn column_name(&self) -> &'static str
pub fn column_name(&self) -> &'static str
Returns the storage column name used in the conditions table.
Trait Implementations§
impl Copy for ValueType
impl Eq for ValueType
impl StructuralPartialEq for ValueType
Auto Trait Implementations§
impl Freeze for ValueType
impl RefUnwindSafe for ValueType
impl Send for ValueType
impl Sync for ValueType
impl Unpin for ValueType
impl UnwindSafe for ValueType
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