pub struct Row {
pub columns: Vec<Option<CqlValue>>,
}
Fields§
§columns: Vec<Option<CqlValue>>
Trait Implementations§
Source§impl<'frame, 'metadata> DeserializeRow<'frame, 'metadata> for Row
While no longer encouraged (because the new framework encourages deserializing
directly into desired types, entirely bypassing CqlValue), this can be indispensable
for some use cases, i.e. those involving dynamic parsing (ORMs?).
impl<'frame, 'metadata> DeserializeRow<'frame, 'metadata> for Row
While no longer encouraged (because the new framework encourages deserializing directly into desired types, entirely bypassing CqlValue), this can be indispensable for some use cases, i.e. those involving dynamic parsing (ORMs?).
Source§fn type_check(_specs: &[ColumnSpec<'_>]) -> Result<(), TypeCheckError>
fn type_check(_specs: &[ColumnSpec<'_>]) -> Result<(), TypeCheckError>
Checks that the schema of the result matches what this type expects. Read more
Source§fn deserialize(
row: ColumnIterator<'frame, 'metadata>,
) -> Result<Self, DeserializationError>
fn deserialize( row: ColumnIterator<'frame, 'metadata>, ) -> Result<Self, DeserializationError>
Deserializes a row from given column iterator. Read more
impl StructuralPartialEq for Row
Auto Trait Implementations§
impl Freeze for Row
impl RefUnwindSafe for Row
impl Send for Row
impl Sync for Row
impl Unpin for Row
impl UnwindSafe for Row
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> 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