Struct cdrs::types::blob::Blob [−][src]
pub struct Blob(_);
Special type that represents Cassandra blob type.
Methods
impl Blob
[src]
impl Blob
pub fn new(bytes: Vec<u8>) -> Self
[src]
pub fn new(bytes: Vec<u8>) -> Self
Constructor method that creates new blob value from a vector of bytes.
pub fn as_mut_slice<'a>(&'a mut self) -> &'a [u8]
[src]
pub fn as_mut_slice<'a>(&'a mut self) -> &'a [u8]
Returns a mutable reference to an underlying slice of bytes.
pub fn into_vec(self) -> Vec<u8>
[src]
pub fn into_vec(self) -> Vec<u8>
Returns underlying vector of bytes.
Trait Implementations
impl PartialEq for Blob
[src]
impl PartialEq for Blob
fn eq(&self, other: &Blob) -> bool
[src]
fn eq(&self, other: &Blob) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Blob) -> bool
[src]
fn ne(&self, other: &Blob) -> bool
This method tests for !=
.
impl Eq for Blob
[src]
impl Eq for Blob
impl Hash for Blob
[src]
impl Hash for Blob
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
[src]Feeds a slice of this type into the given [Hasher
]. Read more
impl Debug for Blob
[src]
impl Debug for Blob
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for Blob
[src]
impl Clone for Blob
fn clone(&self) -> Blob
[src]
fn clone(&self) -> Blob
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl From<Vec<u8>> for Blob
[src]
impl From<Vec<u8>> for Blob
impl FromCDRS for Blob
[src]
impl FromCDRS for Blob
fn from_cdrs<T>(cdrs_type: T) -> CDRSResult<Option<Self>> where
Self: Sized,
T: AsRustType<Self> + Sized,
[src]
fn from_cdrs<T>(cdrs_type: T) -> CDRSResult<Option<Self>> where
Self: Sized,
T: AsRustType<Self> + Sized,
fn from_cdrs_r<T>(cdrs_type: T) -> CDRSResult<Self> where
Self: Sized,
T: AsRustType<Self> + Sized,
[src]
fn from_cdrs_r<T>(cdrs_type: T) -> CDRSResult<Self> where
Self: Sized,
T: AsRustType<Self> + Sized,
impl FromCDRSByName for Blob
[src]
impl FromCDRSByName for Blob
fn from_cdrs_by_name<T>(cdrs_type: &T, name: &str) -> CDRSResult<Option<Self>> where
Self: Sized,
T: ByName + IntoRustByName<Self> + Sized,
[src]
fn from_cdrs_by_name<T>(cdrs_type: &T, name: &str) -> CDRSResult<Option<Self>> where
Self: Sized,
T: ByName + IntoRustByName<Self> + Sized,
fn from_cdrs_r<T>(cdrs_type: &T, name: &str) -> CDRSResult<Self> where
Self: Sized,
T: ByName + IntoRustByName<Self> + Sized + Debug,
[src]
fn from_cdrs_r<T>(cdrs_type: &T, name: &str) -> CDRSResult<Self> where
Self: Sized,
T: ByName + IntoRustByName<Self> + Sized + Debug,
impl IntoRustByName<Blob> for Row
[src]
impl IntoRustByName<Blob> for Row
fn get_by_name(&self, name: &str) -> Result<Option<Blob>>
[src]
fn get_by_name(&self, name: &str) -> Result<Option<Blob>>
fn get_r_by_name(&self, name: &str) -> CDRSResult<R>
[src]
fn get_r_by_name(&self, name: &str) -> CDRSResult<R>
impl IntoRustByIndex<Blob> for Row
[src]
impl IntoRustByIndex<Blob> for Row
fn get_by_index(&self, index: usize) -> Result<Option<Blob>>
[src]
fn get_by_index(&self, index: usize) -> Result<Option<Blob>>
fn get_r_by_index(&self, index: usize) -> CDRSResult<R>
[src]
fn get_r_by_index(&self, index: usize) -> CDRSResult<R>
impl IntoRustByName<Blob> for UDT
[src]
impl IntoRustByName<Blob> for UDT
fn get_by_name(&self, name: &str) -> Result<Option<Blob>>
[src]
fn get_by_name(&self, name: &str) -> Result<Option<Blob>>
fn get_r_by_name(&self, name: &str) -> CDRSResult<R>
[src]
fn get_r_by_name(&self, name: &str) -> CDRSResult<R>
impl Into<Bytes> for Blob
[src]
impl Into<Bytes> for Blob
impl IntoRustByIndex<Blob> for Tuple
[src]
impl IntoRustByIndex<Blob> for Tuple
fn get_by_index(&self, index: usize) -> Result<Option<Blob>>
[src]
fn get_by_index(&self, index: usize) -> Result<Option<Blob>>
fn get_r_by_index(&self, index: usize) -> CDRSResult<R>
[src]
fn get_r_by_index(&self, index: usize) -> CDRSResult<R>