pub enum Value {
Entity(Entity),
Attribute(Attribute),
Text(String),
Integer(i64),
Float(f64),
Boolean(bool),
Uuid(Uuid),
Blob(Vec<u8>),
}
Expand description
A owning version of ValueRef
Variants
Entity(Entity)
Attribute(Attribute)
Text(String)
Integer(i64)
Float(f64)
Boolean(bool)
Uuid(Uuid)
Blob(Vec<u8>)
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Value
impl<'de> Deserialize<'de> for Value
sourcefn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Display for Value
impl Display for Value
See ValueRef
’s fmt::Display
implementation.
sourceimpl FromStr for Value
impl FromStr for Value
Opposite of fmt::Display
. Requires the serde_json
feature.
sourceimpl FromTypeTagAndSqlValue for Value
impl FromTypeTagAndSqlValue for Value
fn from_type_tag_and_sql_value(
type_tag: i64,
value: SqlValueRef<'_>
) -> FromSqlResult<Self>
sourceimpl ToSql for Value
impl ToSql for Value
sourcefn to_sql(&self) -> Result<ToSqlOutput<'_>>
fn to_sql(&self) -> Result<ToSqlOutput<'_>>
Converts Rust value to SQLite value
impl StructuralPartialEq for Value
Auto Trait Implementations
impl RefUnwindSafe for Value
impl Send for Value
impl Sync for Value
impl Unpin for Value
impl UnwindSafe for Value
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<'a, T> FromBorrowedStr<'a> for T where
T: FromStr,
impl<'a, T> FromBorrowedStr<'a> for T where
T: FromStr,
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more