pub struct ScyllaDBValueRef<'r> { /* private fields */ }
Expand description
Implementation of sqlx::ValueRef for ScyllaDB.
Implementations§
Source§impl<'r> ScyllaDBValueRef<'r>
impl<'r> ScyllaDBValueRef<'r>
Sourcepub fn column_name(&self) -> UStr
pub fn column_name(&self) -> UStr
Return the column name.
Sourcepub fn column_type(&self) -> ColumnType<'static>
pub fn column_type(&self) -> ColumnType<'static>
Return the scylladb column type.
Sourcepub fn deserialize<T>(&self) -> Result<T, ScyllaDBError>where
T: DeserializeValue<'r, 'r>,
pub fn deserialize<T>(&self) -> Result<T, ScyllaDBError>where
T: DeserializeValue<'r, 'r>,
Deserialize the response data from scylladb.
Trait Implementations§
Source§impl<'r> Clone for ScyllaDBValueRef<'r>
impl<'r> Clone for ScyllaDBValueRef<'r>
Source§fn clone(&self) -> ScyllaDBValueRef<'r>
fn clone(&self) -> ScyllaDBValueRef<'r>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<'r> Debug for ScyllaDBValueRef<'r>
impl<'r> Debug for ScyllaDBValueRef<'r>
Source§impl<'r> ValueRef<'r> for ScyllaDBValueRef<'r>
impl<'r> ValueRef<'r> for ScyllaDBValueRef<'r>
Auto Trait Implementations§
impl<'r> Freeze for ScyllaDBValueRef<'r>
impl<'r> RefUnwindSafe for ScyllaDBValueRef<'r>
impl<'r> Send for ScyllaDBValueRef<'r>
impl<'r> Sync for ScyllaDBValueRef<'r>
impl<'r> Unpin for ScyllaDBValueRef<'r>
impl<'r> UnwindSafe for ScyllaDBValueRef<'r>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
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