Struct discord_cassandra_cpp::ConstDataType
source · [−]pub struct ConstDataType(_);
Expand description
Any cassandra datatype (const).
Implementations
sourceimpl ConstDataType
impl ConstDataType
sourcepub fn new_user_type(&self) -> UserType
pub fn new_user_type(&self) -> UserType
Creates a new user defined type from existing data type.
sourcepub fn sub_type_count(&self) -> usize
pub fn sub_type_count(&self) -> usize
Gets the sub-data type count of a UDT (user defined type), tuple or collection.
Note: Only valid for UDT, tuple and collection data types.
sourcepub fn sub_data_type(&self, index: usize) -> Option<ConstDataType>
pub fn sub_data_type(&self, index: usize) -> Option<ConstDataType>
Gets the sub-data type of a UDT (user defined type), tuple or collection at the specified index.
Note: Only valid for UDT, tuple and collection data types.
sourcepub fn sub_type_name(&self, index: usize) -> Result<&str>
pub fn sub_type_name(&self, index: usize) -> Result<&str>
Gets the sub-type name of a UDT (user defined type) at the specified index.
Note: Only valid for UDT data types.
Trait Implementations
sourceimpl Debug for ConstDataType
impl Debug for ConstDataType
impl Send for ConstDataType
Auto Trait Implementations
impl RefUnwindSafe for ConstDataType
impl !Sync for ConstDataType
impl Unpin for ConstDataType
impl UnwindSafe for ConstDataType
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