pub enum OwnedValue {
Bool(bool),
U64(u64),
I64(i64),
F64(f64),
Instant(i64),
Uuid(Uuid),
Str(String),
Json(String),
Blob(Vec<u8>),
}
Variants§
Bool(bool)
U64(u64)
I64(i64)
F64(f64)
Instant(i64)
Uuid(Uuid)
Str(String)
Json(String)
Blob(Vec<u8>)
Trait Implementations§
Source§impl Clone for OwnedValue
impl Clone for OwnedValue
Source§fn clone(&self) -> OwnedValue
fn clone(&self) -> OwnedValue
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for OwnedValue
impl Debug for OwnedValue
Source§impl<'v> From<&'v OwnedValue> for Value<'v>
impl<'v> From<&'v OwnedValue> for Value<'v>
Source§fn from(value: &OwnedValue) -> Value<'_>
fn from(value: &OwnedValue) -> Value<'_>
Converts to this type from the input type.
Source§impl<'v> From<&'v Value<'v>> for OwnedValue
impl<'v> From<&'v Value<'v>> for OwnedValue
Source§fn from(value: &Value<'_>) -> OwnedValue
fn from(value: &Value<'_>) -> OwnedValue
Converts to this type from the input type.
Source§impl PartialEq for OwnedValue
impl PartialEq for OwnedValue
impl StructuralPartialEq for OwnedValue
Auto Trait Implementations§
impl Freeze for OwnedValue
impl RefUnwindSafe for OwnedValue
impl Send for OwnedValue
impl Sync for OwnedValue
impl Unpin for OwnedValue
impl UnwindSafe for OwnedValue
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