pub enum ScalarValue {
Bool(bool),
Int64(i64),
Uint64(u64),
Float64(f64),
String(String),
Bytes(Vec<u8>),
Uuid([u8; 16]),
Timestamp(i64),
}Variants§
Bool(bool)
Int64(i64)
Uint64(u64)
Float64(f64)
String(String)
Bytes(Vec<u8>)
Uuid([u8; 16])
Timestamp(i64)
Unix microseconds (same convention as elsewhere in ModelVault).
Implementations§
Source§impl ScalarValue
impl ScalarValue
Sourcepub fn canonical_key_bytes(&self) -> Vec<u8> ⓘ
pub fn canonical_key_bytes(&self) -> Vec<u8> ⓘ
Canonical bytes for indexing (last insert wins per key).
pub fn ty_matches(&self, ty: &Type) -> bool
Trait Implementations§
Source§impl Clone for ScalarValue
impl Clone for ScalarValue
Source§fn clone(&self) -> ScalarValue
fn clone(&self) -> ScalarValue
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ScalarValue
impl Debug for ScalarValue
Source§impl PartialEq for ScalarValue
impl PartialEq for ScalarValue
Source§fn eq(&self, other: &ScalarValue) -> bool
fn eq(&self, other: &ScalarValue) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ScalarValue
Auto Trait Implementations§
impl Freeze for ScalarValue
impl RefUnwindSafe for ScalarValue
impl Send for ScalarValue
impl Sync for ScalarValue
impl Unpin for ScalarValue
impl UnsafeUnpin for ScalarValue
impl UnwindSafe for ScalarValue
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