pub struct Value<'a>(/* private fields */);
Expand description
A single primitive value or a collection of values.
Implementations§
Source§impl<'a> Value<'a>
impl<'a> Value<'a>
Sourcepub fn is_collection(&self) -> bool
pub fn is_collection(&self) -> bool
Returns true if a specified value is a collection.
Sourcepub fn get_set(&self) -> Result<SetIterator<'a>>
pub fn get_set(&self) -> Result<SetIterator<'a>>
Gets this value as a set / list / tuple iterator (the same method works for any of these).
Sourcepub fn get_map(&self) -> Result<MapIterator<'a>>
pub fn get_map(&self) -> Result<MapIterator<'a>>
Gets this value as a map iterator.
Sourcepub fn get_user_type(&self) -> Result<UserTypeIterator<'a>>
pub fn get_user_type(&self) -> Result<UserTypeIterator<'a>>
Gets an iterator over the fields of the user type in this column or errors if you ask for the wrong type
Sourcepub fn get_string(&self) -> Result<String>
pub fn get_string(&self) -> Result<String>
Get this value as a string
Sourcepub fn get_decimal(&self) -> Result<BigDecimal>
pub fn get_decimal(&self) -> Result<BigDecimal>
Get this value as a BigDecimal
Trait Implementations§
impl Send for Value<'_>
impl Sync for Value<'_>
Auto Trait Implementations§
impl<'a> Freeze for Value<'a>
impl<'a> RefUnwindSafe for Value<'a>
impl<'a> Unpin for Value<'a>
impl<'a> UnwindSafe for Value<'a>
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