pub enum Value {
Null,
Int(i32),
Str(String),
}
Expand description
A value from one cell in a database table row.
Variants§
Implementations§
Trait Implementations§
source§impl<'a> From<&'a [Language]> for Value
impl<'a> From<&'a [Language]> for Value
Returns a string value containing the codes for the given languages,
suitable for storing in a column with the Language
category.
source§impl From<Language> for Value
impl From<Language> for Value
Returns a string value containing the code for the given language, suitable
for storing in a column with the Language
category.
source§impl From<Uuid> for Value
impl From<Uuid> for Value
Returns a string value containing the given UUID, suitable for storing in a
column with the Guid
category.
source§impl Ord for Value
impl Ord for Value
source§impl PartialEq for Value
impl PartialEq for Value
source§impl PartialOrd for Value
impl PartialOrd for Value
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for Value
impl StructuralEq for 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§
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