Struct scylla_cql::frame::response::result::DeserializedMetadataAndRawRows
source · pub struct DeserializedMetadataAndRawRows { /* private fields */ }
Expand description
RESULT:Rows response, in partially serialized form.
Paging state and metadata are deserialized, rows remain serialized.
Implementations§
source§impl DeserializedMetadataAndRawRows
impl DeserializedMetadataAndRawRows
sourcepub fn metadata(&self) -> &ResultMetadata<'_>
pub fn metadata(&self) -> &ResultMetadata<'_>
Returns the metadata associated with this response (table and column specifications).
sourcepub fn into_metadata(self) -> ResultMetadataHolder
pub fn into_metadata(self) -> ResultMetadataHolder
Consumes the DeserializedMetadataAndRawRows
and returns metadata
associated with the response (or cached metadata, if used in its stead).
sourcepub fn rows_count(&self) -> usize
pub fn rows_count(&self) -> usize
Returns the number of rows that the RESULT:Rows contain.
sourcepub fn rows_bytes_size(&self) -> usize
pub fn rows_bytes_size(&self) -> usize
Returns the serialized size of the raw rows.
pub fn mock_empty() -> Self
sourcepub fn rows_iter<'frame, 'metadata, R: DeserializeRow<'frame, 'metadata>>(
&'frame self,
) -> StdResult<TypedRowIterator<'frame, 'metadata, R>, TypeCheckError>where
'frame: 'metadata,
pub fn rows_iter<'frame, 'metadata, R: DeserializeRow<'frame, 'metadata>>(
&'frame self,
) -> StdResult<TypedRowIterator<'frame, 'metadata, R>, TypeCheckError>where
'frame: 'metadata,
Creates a typed iterator over the rows that lazily deserializes rows in the result.
Returns Err if the schema of returned result doesn’t match R.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for DeserializedMetadataAndRawRows
impl RefUnwindSafe for DeserializedMetadataAndRawRows
impl Send for DeserializedMetadataAndRawRows
impl Sync for DeserializedMetadataAndRawRows
impl Unpin for DeserializedMetadataAndRawRows
impl UnwindSafe for DeserializedMetadataAndRawRows
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