Struct discord_cassandra_cpp::UserType
source · [−]pub struct UserType(_);
Expand description
A user defined type
Implementations
sourceimpl UserType
impl UserType
sourcepub fn data_type(&self) -> ConstDataType
pub fn data_type(&self) -> ConstDataType
Gets the data type of a user defined type.
sourcepub fn set_null(&mut self, index: usize) -> Result<&mut Self>
pub fn set_null(&mut self, index: usize) -> Result<&mut Self>
Sets a null in a user defined type at the specified index.
sourcepub fn set_null_by_name<S>(&mut self, name: S) -> Result<&mut Self> where
S: Into<String>,
pub fn set_null_by_name<S>(&mut self, name: S) -> Result<&mut Self> where
S: Into<String>,
Sets a null in a user defined type at the specified name.
sourcepub fn set_int8(&mut self, index: usize, value: i8) -> Result<&mut Self>
pub fn set_int8(&mut self, index: usize, value: i8) -> Result<&mut Self>
Sets a “tinyint” in a user defined type at the specified index.
sourcepub fn set_int8_by_name<S>(&mut self, name: S, value: i8) -> Result<&mut Self> where
S: Into<String>,
pub fn set_int8_by_name<S>(&mut self, name: S, value: i8) -> Result<&mut Self> where
S: Into<String>,
Sets a “tinyint” in a user defined type at the specified name.
sourcepub fn set_int16(&mut self, index: usize, value: i16) -> Result<&mut Self>
pub fn set_int16(&mut self, index: usize, value: i16) -> Result<&mut Self>
Sets an “smallint” in a user defined type at the specified index.
sourcepub fn set_int16_by_name<S>(&mut self, name: S, value: i16) -> Result<&mut Self> where
S: Into<String>,
pub fn set_int16_by_name<S>(&mut self, name: S, value: i16) -> Result<&mut Self> where
S: Into<String>,
Sets an “smallint” in a user defined type at the specified name.
sourcepub fn set_int32(&mut self, index: usize, value: i32) -> Result<&mut Self>
pub fn set_int32(&mut self, index: usize, value: i32) -> Result<&mut Self>
Sets an “int” in a user defined type at the specified index.
sourcepub fn set_int32_by_name<S>(&mut self, name: S, value: i32) -> Result<&mut Self> where
S: Into<String>,
pub fn set_int32_by_name<S>(&mut self, name: S, value: i32) -> Result<&mut Self> where
S: Into<String>,
Sets an “int” in a user defined type at the specified name.
sourcepub fn set_uint32(&mut self, index: usize, value: u32) -> Result<&mut Self>
pub fn set_uint32(&mut self, index: usize, value: u32) -> Result<&mut Self>
Sets a “date” in a user defined type at the specified index.
sourcepub fn set_uint32_by_name<S>(
&mut self,
name: S,
value: u32
) -> Result<&mut Self> where
S: Into<String>,
pub fn set_uint32_by_name<S>(
&mut self,
name: S,
value: u32
) -> Result<&mut Self> where
S: Into<String>,
Sets a “date” in a user defined type at the specified name.
sourcepub fn set_int64(&mut self, index: usize, value: i64) -> Result<&mut Self>
pub fn set_int64(&mut self, index: usize, value: i64) -> Result<&mut Self>
Sets an “bigint”, “counter”, “timestamp” or “time” in a user defined type at the specified index.
sourcepub fn set_int64_by_name<S>(&mut self, name: S, value: i64) -> Result<&mut Self> where
S: Into<String>,
pub fn set_int64_by_name<S>(&mut self, name: S, value: i64) -> Result<&mut Self> where
S: Into<String>,
Sets an “bigint”, “counter”, “timestamp” or “time” in a user defined type at the specified name.
sourcepub fn set_float(&mut self, index: usize, value: f32) -> Result<&mut Self>
pub fn set_float(&mut self, index: usize, value: f32) -> Result<&mut Self>
Sets a “float” in a user defined type at the specified index.
sourcepub fn set_float_by_name<S>(&mut self, name: S, value: f32) -> Result<&mut Self> where
S: Into<String>,
pub fn set_float_by_name<S>(&mut self, name: S, value: f32) -> Result<&mut Self> where
S: Into<String>,
Sets a “float” in a user defined type at the specified name.
sourcepub fn set_double(&mut self, index: usize, value: f64) -> Result<&mut Self>
pub fn set_double(&mut self, index: usize, value: f64) -> Result<&mut Self>
Sets an “double” in a user defined type at the specified index.
sourcepub fn set_double_by_name<S>(
&mut self,
name: S,
value: f64
) -> Result<&mut Self> where
S: Into<String>,
pub fn set_double_by_name<S>(
&mut self,
name: S,
value: f64
) -> Result<&mut Self> where
S: Into<String>,
Sets an “double” in a user defined type at the specified name.
sourcepub fn set_bool(&mut self, index: usize, value: bool) -> Result<&mut Self>
pub fn set_bool(&mut self, index: usize, value: bool) -> Result<&mut Self>
Sets a “boolean” in a user defined type at the specified index.
sourcepub fn set_bool_by_name<S>(&mut self, name: S, value: bool) -> Result<&mut Self> where
S: Into<String>,
pub fn set_bool_by_name<S>(&mut self, name: S, value: bool) -> Result<&mut Self> where
S: Into<String>,
Sets a “boolean” in a user defined type at the specified name.
sourcepub fn set_stringl<S>(&mut self, index: usize, value: S) -> Result<&mut Self> where
S: Into<String>,
pub fn set_stringl<S>(&mut self, index: usize, value: S) -> Result<&mut Self> where
S: Into<String>,
Sets an “ascii”, “text” or “varchar” in a user defined type at the specified index.
sourcepub fn set_string_by_name<S>(&mut self, name: S, value: S) -> Result<&mut Self> where
S: Into<String>,
pub fn set_string_by_name<S>(&mut self, name: S, value: S) -> Result<&mut Self> where
S: Into<String>,
Sets an “ascii”, “text” or “varchar” in a user defined type at the specified name.
sourcepub fn set_bytes(&mut self, index: usize, value: Vec<u8>) -> Result<&mut Self>
pub fn set_bytes(&mut self, index: usize, value: Vec<u8>) -> Result<&mut Self>
Sets a “blob” “varint” or “custom” in a user defined type at the specified index.
sourcepub fn set_bytes_by_name<S>(
&mut self,
name: S,
value: Vec<u8>
) -> Result<&mut Self> where
S: Into<String>,
pub fn set_bytes_by_name<S>(
&mut self,
name: S,
value: Vec<u8>
) -> Result<&mut Self> where
S: Into<String>,
Sets a “blob”, “varint” or “custom” in a user defined type at the specified name.
sourcepub fn set_uuid<S>(&mut self, index: usize, value: S) -> Result<&mut Self> where
S: Into<Uuid>,
pub fn set_uuid<S>(&mut self, index: usize, value: S) -> Result<&mut Self> where
S: Into<Uuid>,
Sets a “uuid” or “timeuuid” in a user defined type at the specified index.
sourcepub fn set_uuid_by_name<S, U>(&mut self, name: S, value: U) -> Result<&mut Self> where
S: Into<String>,
U: Into<Uuid>,
pub fn set_uuid_by_name<S, U>(&mut self, name: S, value: U) -> Result<&mut Self> where
S: Into<String>,
U: Into<Uuid>,
Sets a “uuid” or “timeuuid” in a user defined type at the specified name.
sourcepub fn set_inet<S>(&mut self, index: usize, value: S) -> Result<&mut Self> where
S: Into<Inet>,
pub fn set_inet<S>(&mut self, index: usize, value: S) -> Result<&mut Self> where
S: Into<Inet>,
Sets a “inet” in a user defined type at the specified index.
sourcepub fn set_inet_by_name<S, U>(&mut self, name: S, value: U) -> Result<&mut Self> where
S: Into<String>,
U: Into<Inet>,
pub fn set_inet_by_name<S, U>(&mut self, name: S, value: U) -> Result<&mut Self> where
S: Into<String>,
U: Into<Inet>,
Sets a “inet” in a user defined type at the specified name.
sourcepub fn set_list<S>(&mut self, index: usize, value: S) -> Result<&mut Self> where
S: Into<List>,
pub fn set_list<S>(&mut self, index: usize, value: S) -> Result<&mut Self> where
S: Into<List>,
Sets a list in a user defined type at the specified index.
sourcepub fn set_list_by_name<S, V>(&mut self, name: S, value: V) -> Result<&mut Self> where
S: Into<String>,
V: Into<List>,
pub fn set_list_by_name<S, V>(&mut self, name: S, value: V) -> Result<&mut Self> where
S: Into<String>,
V: Into<List>,
Sets a list in a user defined type at the specified name.
sourcepub fn set_map<S>(&mut self, index: usize, value: S) -> Result<&mut Self> where
S: Into<Map>,
pub fn set_map<S>(&mut self, index: usize, value: S) -> Result<&mut Self> where
S: Into<Map>,
Sets a map in a user defined type at the specified index.
sourcepub fn set_map_by_name<S, V>(&mut self, name: S, value: V) -> Result<&mut Self> where
S: Into<String>,
V: Into<Map>,
pub fn set_map_by_name<S, V>(&mut self, name: S, value: V) -> Result<&mut Self> where
S: Into<String>,
V: Into<Map>,
Sets a map in a user defined type at the specified name.
sourcepub fn set_set<S>(&mut self, index: usize, value: S) -> Result<&mut Self> where
S: Into<Set>,
pub fn set_set<S>(&mut self, index: usize, value: S) -> Result<&mut Self> where
S: Into<Set>,
Sets a “set” in a user defined type at the specified index.
sourcepub fn set_set_by_name<S, V>(&mut self, name: S, value: V) -> Result<&mut Self> where
S: Into<String>,
V: Into<Set>,
pub fn set_set_by_name<S, V>(&mut self, name: S, value: V) -> Result<&mut Self> where
S: Into<String>,
V: Into<Set>,
Sets a “set” in a user defined type at the specified name.
sourcepub fn set_tuple(&mut self, index: usize, value: Tuple) -> Result<&mut Self>
pub fn set_tuple(&mut self, index: usize, value: Tuple) -> Result<&mut Self>
Sets a “tuple” in a user defined type at the specified index.
sourcepub fn set_tuple_by_name<S>(
&mut self,
name: S,
value: Tuple
) -> Result<&mut Self> where
S: Into<String>,
pub fn set_tuple_by_name<S>(
&mut self,
name: S,
value: Tuple
) -> Result<&mut Self> where
S: Into<String>,
Sets a “tuple” in a user defined type at the specified name.
Trait Implementations
sourceimpl<S> BindRustType<S, &'_ UserType> for Statement<S>
impl<S> BindRustType<S, &'_ UserType> for Statement<S>
impl Send for UserType
Auto Trait Implementations
impl RefUnwindSafe for UserType
impl !Sync for UserType
impl Unpin for UserType
impl UnwindSafe for UserType
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