Struct Tuple

Source
pub struct Tuple { /* private fields */ }

Implementations§

Source§

impl Tuple

Source

pub fn new( elements: Vec<CBytes>, metadata: &CTuple, protocol_version: Version, ) -> Tuple

Trait Implementations§

Source§

impl AsCassandraType for Tuple

Source§

impl ByIndex for Tuple

Source§

fn by_index<R>(&self, index: usize) -> CDRSResult<Option<R>>
where Self: IntoRustByIndex<R>,

Source§

fn r_by_index<R>(&self, index: usize) -> CDRSResult<R>
where Self: IntoRustByIndex<R>,

Source§

impl Debug for Tuple

Source§

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

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

impl FromCdrs for Tuple

Source§

fn from_cdrs<T>(cdrs_type: T) -> CdrsResult<Option<Self>>
where Self: Sized, T: AsRustType<Self>,

Source§

fn from_cdrs_r<T>(cdrs_type: T) -> CdrsResult<Self>
where Self: Sized, T: AsRustType<Self>,

Source§

impl FromCdrsByName for Tuple

Source§

fn from_cdrs_by_name<T>(cdrs_type: &T, name: &str) -> CdrsResult<Option<Self>>
where Self: Sized, T: ByName + IntoRustByName<Self>,

Source§

fn from_cdrs_r<T>(cdrs_type: &T, name: &str) -> CdrsResult<Self>
where Self: Sized, T: ByName + IntoRustByName<Self> + Debug,

Source§

impl Hash for Tuple

Source§

fn hash<H: Hasher>(&self, state: &mut H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl IntoRustByIndex<BigInt> for Tuple

Source§

impl IntoRustByIndex<Blob> for Tuple

Source§

fn get_by_index(&self, index: usize) -> Result<Option<Blob>>

Source§

fn get_r_by_index(&self, index: usize) -> CDRSResult<R>

Source§

impl IntoRustByIndex<DateTime<Utc>> for Tuple

Source§

impl IntoRustByIndex<Decimal> for Tuple

Source§

impl IntoRustByIndex<IpAddr> for Tuple

Source§

impl IntoRustByIndex<List> for Tuple

Source§

fn get_by_index(&self, index: usize) -> Result<Option<List>>

Source§

fn get_r_by_index(&self, index: usize) -> CDRSResult<R>

Source§

impl IntoRustByIndex<Map> for Tuple

Source§

fn get_by_index(&self, index: usize) -> Result<Option<Map>>

Source§

fn get_r_by_index(&self, index: usize) -> CDRSResult<R>

Source§

impl IntoRustByIndex<NaiveDateTime> for Tuple

Source§

impl IntoRustByIndex<PrimitiveDateTime> for Tuple

Source§

impl IntoRustByIndex<String> for Tuple

Source§

impl IntoRustByIndex<Tuple> for Row

Source§

fn get_by_index(&self, index: usize) -> Result<Option<Tuple>>

Source§

fn get_r_by_index(&self, index: usize) -> CDRSResult<R>

Source§

impl IntoRustByIndex<Tuple> for Tuple

Source§

fn get_by_index(&self, index: usize) -> Result<Option<Tuple>>

Source§

fn get_r_by_index(&self, index: usize) -> CDRSResult<R>

Source§

impl IntoRustByIndex<Udt> for Tuple

Source§

fn get_by_index(&self, index: usize) -> Result<Option<Udt>>

Source§

fn get_r_by_index(&self, index: usize) -> CDRSResult<R>

Source§

impl IntoRustByIndex<Uuid> for Tuple

Source§

fn get_by_index(&self, index: usize) -> Result<Option<Uuid>>

Source§

fn get_r_by_index(&self, index: usize) -> CDRSResult<R>

Source§

impl IntoRustByIndex<bool> for Tuple

Source§

fn get_by_index(&self, index: usize) -> Result<Option<bool>>

Source§

fn get_r_by_index(&self, index: usize) -> CDRSResult<R>

Source§

impl IntoRustByIndex<f32> for Tuple

Source§

fn get_by_index(&self, index: usize) -> Result<Option<f32>>

Source§

fn get_r_by_index(&self, index: usize) -> CDRSResult<R>

Source§

impl IntoRustByIndex<f64> for Tuple

Source§

fn get_by_index(&self, index: usize) -> Result<Option<f64>>

Source§

fn get_r_by_index(&self, index: usize) -> CDRSResult<R>

Source§

impl IntoRustByIndex<i16> for Tuple

Source§

fn get_by_index(&self, index: usize) -> Result<Option<i16>>

Source§

fn get_r_by_index(&self, index: usize) -> CDRSResult<R>

Source§

impl IntoRustByIndex<i32> for Tuple

Source§

fn get_by_index(&self, index: usize) -> Result<Option<i32>>

Source§

fn get_r_by_index(&self, index: usize) -> CDRSResult<R>

Source§

impl IntoRustByIndex<i64> for Tuple

Source§

fn get_by_index(&self, index: usize) -> Result<Option<i64>>

Source§

fn get_r_by_index(&self, index: usize) -> CDRSResult<R>

Source§

impl IntoRustByIndex<i8> for Tuple

Source§

fn get_by_index(&self, index: usize) -> Result<Option<i8>>

Source§

fn get_r_by_index(&self, index: usize) -> CDRSResult<R>

Source§

impl IntoRustByName<Tuple> for Row

Source§

fn get_by_name(&self, name: &str) -> Result<Option<Tuple>>

Source§

fn get_r_by_name(&self, name: &str) -> CDRSResult<R>

Source§

impl IntoRustByName<Tuple> for Udt

Source§

fn get_by_name(&self, name: &str) -> Result<Option<Tuple>>

Source§

fn get_r_by_name(&self, name: &str) -> CDRSResult<R>

Source§

impl PartialEq for Tuple

Source§

fn eq(&self, other: &Tuple) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Eq for Tuple

Auto Trait Implementations§

§

impl Freeze for Tuple

§

impl RefUnwindSafe for Tuple

§

impl Send for Tuple

§

impl Sync for Tuple

§

impl Unpin for Tuple

§

impl UnwindSafe for Tuple

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> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
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.