pub enum Value {
Null,
Bool(bool),
Integer(i64),
Float(f64),
String(String),
Uuid(Uuid),
Timestamp(DateTime<Utc>),
Bytes(Vec<u8>),
Array(Vec<Value>),
Object(HashMap<String, Value>),
}Expand description
A value that can be stored in a database
This enum represents all possible value types in AuDB.
Variants§
Null
Null value
Bool(bool)
Boolean value
Integer(i64)
Integer value (i64)
Float(f64)
Float value (f64)
String(String)
String value
Uuid(Uuid)
UUID value (entity ID)
Timestamp(DateTime<Utc>)
Timestamp value
Bytes(Vec<u8>)
Binary data
Array(Vec<Value>)
Array of values
Object(HashMap<String, Value>)
Object (key-value pairs)
Implementations§
Trait Implementations§
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