pub struct Row {
pub columns: Vec<Option<CqlValue>>,
}
Fields§
§columns: Vec<Option<CqlValue>>
Implementations§
source§impl Row
impl Row
sourcepub fn into_typed<RowT>(self) -> Result<RowT, FromRowError>where
RowT: FromRow,
👎Deprecated since 0.15.0: Legacy deserialization API is inefficient and is going to be removed soon
pub fn into_typed<RowT>(self) -> Result<RowT, FromRowError>where
RowT: FromRow,
Allows converting Row into tuple of rust types or custom struct deriving FromRow
Trait Implementations§
source§impl<'frame, 'metadata> DeserializeRow<'frame, 'metadata> for Row
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<Row, DeserializationError>
fn deserialize( row: ColumnIterator<'frame, 'metadata>, ) -> Result<Row, 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> 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