pub struct ConstDataType(/* private fields */);
Expand description
Any cassandra datatype (const).
Implementations§
Source§impl 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§
Source§impl Debug for ConstDataType
impl Debug for ConstDataType
impl Send for ConstDataType
Auto Trait Implementations§
impl Freeze for ConstDataType
impl RefUnwindSafe for ConstDataType
impl !Sync for ConstDataType
impl Unpin for ConstDataType
impl UnwindSafe for ConstDataType
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