#[non_exhaustive]pub enum Rows {
AvroRows(Box<AvroRows>),
ArrowRecordBatch(Box<ArrowRecordBatch>),
}Expand description
Row data is returned in format specified during session creation.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
AvroRows(Box<AvroRows>)
Serialized row data in AVRO format.
ArrowRecordBatch(Box<ArrowRecordBatch>)
Serialized row data in Arrow RecordBatch format.
Implementations§
Source§impl Rows
impl Rows
Sourcepub fn from_avro_rows(value: impl Into<Box<AvroRows>>) -> Self
pub fn from_avro_rows(value: impl Into<Box<AvroRows>>) -> Self
Initializes the enum to the AvroRows branch.
Sourcepub fn from_arrow_record_batch(value: impl Into<Box<ArrowRecordBatch>>) -> Self
pub fn from_arrow_record_batch(value: impl Into<Box<ArrowRecordBatch>>) -> Self
Initializes the enum to the ArrowRecordBatch branch.
Trait Implementations§
impl StructuralPartialEq for Rows
Auto Trait Implementations§
impl Freeze for Rows
impl RefUnwindSafe for Rows
impl Send for Rows
impl Sync for Rows
impl Unpin for Rows
impl UnsafeUnpin for Rows
impl UnwindSafe for Rows
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
Source§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request