Struct discord_cassandra_cpp::Value
source · [−]pub struct Value(_);
Expand description
A single primitive value or a collection of values.
Implementations
sourceimpl Value
impl Value
sourcepub fn data_type(&self) -> ConstDataType
pub fn data_type(&self) -> ConstDataType
Get the data type of this Cassandra value
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>
pub fn get_set(&self) -> Result<SetIterator>
Gets this value as a set iterator.
sourcepub fn get_map(&self) -> Result<MapIterator>
pub fn get_map(&self) -> Result<MapIterator>
Gets this value as a map iterator.
sourcepub fn get_user_type(&self) -> Result<UserTypeIterator>
pub fn get_user_type(&self) -> Result<UserTypeIterator>
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
Trait Implementations
impl Send for Value
impl Sync for Value
Auto Trait Implementations
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more