pub struct GetBuilder { /* private fields */ }Expand description
A pending get, created with OxiaClient::get. Chain options and
.await it.
Implementations§
Source§impl GetBuilder
impl GetBuilder
Sourcepub fn comparison(self, comparison: ComparisonType) -> Self
pub fn comparison(self, comparison: ComparisonType) -> Self
Applies a non-exact key comparison (floor/ceiling/lower/higher); the returned record’s key may then differ from the requested key.
Sourcepub fn partition_key(self, partition_key: impl Into<String>) -> Self
pub fn partition_key(self, partition_key: impl Into<String>) -> Self
Restricts the query to the shard owning partition_key. Required to
read records that were written with a partition key.
Sourcepub fn include_value(self, include_value: bool) -> Self
pub fn include_value(self, include_value: bool) -> Self
Excludes the value from the response (metadata-only query) when false.
Defaults to true.
Trait Implementations§
Source§impl Debug for GetBuilder
impl Debug for GetBuilder
Source§impl IntoFuture for GetBuilder
impl IntoFuture for GetBuilder
Source§type Output = Result<GetResult, OxiaError>
type Output = Result<GetResult, OxiaError>
The output that the future will produce on completion.
Source§type IntoFuture = Pin<Box<dyn Future<Output = <GetBuilder as IntoFuture>::Output> + Send>>
type IntoFuture = Pin<Box<dyn Future<Output = <GetBuilder as IntoFuture>::Output> + Send>>
Which kind of future are we turning this into?
Source§fn into_future(self) -> Self::IntoFuture
fn into_future(self) -> Self::IntoFuture
Creates a future from a value. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for GetBuilder
impl !UnwindSafe for GetBuilder
impl Freeze for GetBuilder
impl Send for GetBuilder
impl Sync for GetBuilder
impl Unpin for GetBuilder
impl UnsafeUnpin for GetBuilder
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> 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