pub struct QueryData<S: Scalar> {
pub table: OwnedTable<S>,
pub verification_hash: [u8; 32],
}
Expand description
The verified results of a query along with metadata produced by verification
Fields§
§table: OwnedTable<S>
We use Apache Arrow’s [RecordBatch
] to represent a table
result so as to allow for easy interoperability with
Apache Arrow Flight.
See <https://voltrondata.com/blog/apache-arrow-flight-primer/>
verification_hash: [u8; 32]
Additionally, there is a 32-byte verification hash that is included with this table. This hash provides evidence that the verification has been run.
Auto Trait Implementations§
impl<S> Freeze for QueryData<S>
impl<S> RefUnwindSafe for QueryData<S>where
S: RefUnwindSafe,
impl<S> Send for QueryData<S>
impl<S> Sync for QueryData<S>
impl<S> Unpin for QueryData<S>where
S: Unpin,
impl<S> UnwindSafe for QueryData<S>where
S: UnwindSafe,
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