Struct Map

Source
pub struct Map(/* private fields */);
Expand description

A Cassandra Map

Trait Implementations§

Source§

impl BindRustType<Map> for Statement

Source§

fn bind(&mut self, index: usize, value: Map) -> Result<&mut Self>

binds a rust type to C* by index
Source§

fn bind_by_name(&mut self, col: &str, value: Map) -> Result<&mut Self>

binds a rust type to C* by name
Source§

impl CassCollection for Map

Source§

fn data_type(&self) -> ConstDataType<'_>

Gets the data type of a collection.

Source§

fn append_int8(&mut self, value: i8) -> Result<&mut Self>

Appends a “tinyint” to the collection.

Source§

fn append_int16(&mut self, value: i16) -> Result<&mut Self>

Appends an “smallint” to the collection.

Source§

fn append_int32(&mut self, value: i32) -> Result<&mut Self>

Appends an “int” to the collection.

Source§

fn append_uint32(&mut self, value: u32) -> Result<&mut Self>

Appends a “date” to the collection.

Source§

fn append_int64(&mut self, value: i64) -> Result<&mut Self>

Appends a “bigint”, “counter”, “timestamp” or “time” to the collection.

Source§

fn append_float(&mut self, value: f32) -> Result<&mut Self>

Appends a “float” to the collection.

Source§

fn append_double(&mut self, value: f64) -> Result<&mut Self>

Appends a “double” to the collection.

Source§

fn append_bool(&mut self, value: bool) -> Result<&mut Self>

Appends a “boolean” to the collection.

Source§

fn append_string(&mut self, value: &str) -> Result<&mut Self>

Appends an “ascii”, “text” or “varchar” to the collection.

Source§

fn append_bytes(&mut self, value: Vec<u8>) -> Result<&mut Self>

Appends a “blob”, “varint” or “custom” to the collection.

Source§

fn append_uuid(&mut self, value: Uuid) -> Result<&mut Self>

Appends a “uuid” or “timeuuid” to the collection.

Source§

fn append_inet(&mut self, value: Inet) -> Result<&mut Self>

Appends an “inet” to the collection.

Source§

fn append_list(&mut self, value: List) -> Result<&mut Self>

Appends a “list” to the collection.

Source§

fn append_set(&mut self, value: Set) -> Result<&mut Self>

Appends a “set” to the collection.

Source§

fn append_map(&mut self, value: Map) -> Result<&mut Self>

Appends a “map” to the collection.

Source§

fn append_tuple(&mut self, value: Tuple) -> Result<&mut Self>

Appends a “tuple” to the collection.

Source§

fn append_user_type(&mut self, value: &UserType) -> Result<&mut Self>

Appends a “udt” to the collection.

Source§

type Value = CassCollection_

The type of value held by this collection
Source§

fn with_capacity(capacity: usize) -> Self

Creates a new collection, specifying a capacity which will be used as a size hint to avoid re-allocations of the collection internally. Read more
Source§

fn new_from_data_type(value: DataType, item_count: usize) -> Self

Creates a new collection from an existing data type.
Source§

fn new() -> Self

Creates a new collection.
Source§

impl Debug for Map

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Drop for Map

Source§

fn drop(&mut self)

Executes the destructor for this type. Read more
Source§

impl Send for Map

Source§

impl Sync for Map

Auto Trait Implementations§

§

impl Freeze for Map

§

impl RefUnwindSafe for Map

§

impl Unpin for Map

§

impl UnwindSafe for Map

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> SendSyncUnwindSafe for T
where T: Send + Sync + UnwindSafe + ?Sized,