[−][src]Struct cassandra_cpp::DataType
Any cassandra datatype
Implementations
impl DataType
[src]
pub fn new(value_type: ValueType) -> Self
[src]
Creates a new data type with value type.
pub fn new_user_type(&self) -> UserType
[src]
Creates a new data type from an existing data type.
pub fn new_from_existing(&self) -> Self
[src]
Creates a new data type from an existing data type.
pub fn new_tuple(item_count: usize) -> Self
[src]
Creates a new tuple data type.
pub fn new_udt(field_count: usize) -> DataType
[src]
Creates a new UDT (user defined type) data type.
pub fn get_type(data_type: DataType) -> ValueType
[src]
Gets the value type of the specified data type.
pub fn type_name<S>(data_type: DataType, type_name: S) -> Result<()> where
S: Into<String>,
[src]
S: Into<String>,
Gets the type name of a UDT data type.
pub fn set_type_name<S>(data_type: DataType, type_name: S) -> Result<()> where
S: Into<String>,
[src]
S: Into<String>,
Sets the type name of a UDT data type.
Note: Only valid for UDT data types.
pub fn keyspace<S>(data_type: DataType, keyspace: S) -> Result<()> where
S: Into<String>,
[src]
S: Into<String>,
Gets the type name of a UDT data type.
Note: Only valid for UDT data types.
pub fn set_keyspace<S>(data_type: DataType, keyspace: S) -> Result<()> where
S: Into<String>,
[src]
S: Into<String>,
Sets the keyspace of a UDT data type.
Note: Only valid for UDT data types.
pub fn class_name<S>(data_type: DataType, class_name: S) -> Result<()> where
S: Into<String>,
[src]
S: Into<String>,
Gets the class name of a custom data type.
Note: Only valid for custom data types.
pub fn set_class_name<S>(&self, class_name: S) -> Result<()> where
S: Into<String>,
[src]
S: Into<String>,
Sets the class name of a custom data type.
Note: Only valid for custom data types.
pub fn sub_type_count<S>(&self) -> usize
[src]
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.
pub fn sub_data_type(&self, index: usize) -> ConstDataType
[src]
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.
pub fn sub_data_type_by_name<S>(data_type: DataType, name: S) -> ConstDataType where
S: Into<String>,
[src]
S: Into<String>,
Gets the sub-data type of a UDT (user defined type) at the specified index.
Note: Only valid for UDT data types.
pub fn sub_type_name<S>(
data_type: DataType,
index: usize,
name: S
) -> Result<()> where
S: Into<String>,
[src]
data_type: DataType,
index: usize,
name: S
) -> Result<()> where
S: Into<String>,
Gets the sub-type name of a UDT (user defined type) at the specified index.
Note: Only valid for UDT data types.
pub fn add_sub_type(&self, sub_data_type: DataType) -> Result<()>
[src]
Adds a sub-data type to a tuple or collection.
Note: Only valid for tuple and collection data types.
pub fn add_sub_type_by_name<S>(
&mut self,
name: S,
sub_data_type: DataType
) -> Result<()> where
S: Into<String>,
[src]
&mut self,
name: S,
sub_data_type: DataType
) -> Result<()> where
S: Into<String>,
Gets the sub-data type of a UDT (user defined type) at the specified index.
Note: Only valid for UDT data types.
pub fn add_sub_value_type<S>(&self, sub_value_type: ValueType) -> Result<()> where
S: Into<String>,
[src]
S: Into<String>,
Adds a sub-data type to a tuple or collection using a value type.
Note: Only valid for tuple and collection data types.
pub fn add_sub_value_type_by_name<S>(
&self,
name: &str,
typ: ValueType
) -> Result<()> where
S: Into<String>,
[src]
&self,
name: &str,
typ: ValueType
) -> Result<()> where
S: Into<String>,
Adds a sub-data type to a tuple or collection using a value type.
Note: Only valid for tuple and collection data types.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for DataType
impl !Sync for DataType
impl Unpin for DataType
impl UnwindSafe for DataType
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> SendSyncUnwindSafe for T where
T: Send + Sync + UnwindSafe + ?Sized,
[src]
T: Send + Sync + UnwindSafe + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,