pub struct ReadRows(/* private fields */);Expand description
The request builder for Read::read_rows calls.
§Example
let builder = prepare_request_builder();
let mut resp_stream = builder.send().await?;
while let Some(response) = resp_stream.next().await {
let response = response?;
println!("response {:?}", response);
}
fn prepare_request_builder() -> ReadRows {
// ... details omitted ...
}Implementations§
Source§impl ReadRows
impl ReadRows
Sourcepub fn with_request<V: Into<ReadRowsRequest>>(self, v: V) -> Self
pub fn with_request<V: Into<ReadRowsRequest>>(self, v: V) -> Self
Sets the full request, replacing any prior values.
Sourcepub fn with_options<V: Into<RequestOptions>>(self, v: V) -> Self
pub fn with_options<V: Into<RequestOptions>>(self, v: V) -> Self
Sets all the options, replacing any prior values.
Sourcepub async fn send(self) -> Result<ResponseStream<ReadRowsResponse>>
pub async fn send(self) -> Result<ResponseStream<ReadRowsResponse>>
Initiates the server stream.
Sourcepub fn set_read_stream<T: Into<String>>(self, v: T) -> Self
pub fn set_read_stream<T: Into<String>>(self, v: T) -> Self
Sets the value of read_stream.
This is a required field for requests.
Sourcepub fn set_offset<T: Into<i64>>(self, v: T) -> Self
pub fn set_offset<T: Into<i64>>(self, v: T) -> Self
Sets the value of offset.
Sourcepub fn set_output_format_serialization_options<T: Into<Option<OutputFormatSerializationOptions>>>(
self,
v: T,
) -> Self
pub fn set_output_format_serialization_options<T: Into<Option<OutputFormatSerializationOptions>>>( self, v: T, ) -> Self
Sets the value of output_format_serialization_options.
Note that all the setters affecting output_format_serialization_options are
mutually exclusive.
Sourcepub fn set_arrow_serialization_options<T: Into<Box<ArrowSerializationOptions>>>(
self,
v: T,
) -> Self
pub fn set_arrow_serialization_options<T: Into<Box<ArrowSerializationOptions>>>( self, v: T, ) -> Self
Sets the value of output_format_serialization_options
to hold a ArrowSerializationOptions.
Note that all the setters affecting output_format_serialization_options are
mutually exclusive.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for ReadRows
impl !UnwindSafe for ReadRows
impl Freeze for ReadRows
impl Send for ReadRows
impl Sync for ReadRows
impl Unpin for ReadRows
impl UnsafeUnpin for ReadRows
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::RequestSource§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T> RequestOptionsBuilder for Twhere
T: RequestBuilder,
impl<T> RequestOptionsBuilder for Twhere
T: RequestBuilder,
Source§fn with_idempotency(self, v: bool) -> T
fn with_idempotency(self, v: bool) -> T
If
v is true, treat the RPC underlying this method as idempotent.Source§fn with_user_agent<V>(self, v: V) -> T
fn with_user_agent<V>(self, v: V) -> T
Set the user agent header.
Source§fn with_quota_project<V>(self, v: V) -> T
fn with_quota_project<V>(self, v: V) -> T
Sets the quota project for the request. Read more
Source§fn with_attempt_timeout<V>(self, v: V) -> T
fn with_attempt_timeout<V>(self, v: V) -> T
Sets the per-attempt timeout. Read more
Source§fn with_retry_policy<V>(self, v: V) -> Twhere
V: Into<RetryPolicyArg>,
fn with_retry_policy<V>(self, v: V) -> Twhere
V: Into<RetryPolicyArg>,
Sets the retry policy configuration.
Source§fn with_backoff_policy<V>(self, v: V) -> Twhere
V: Into<BackoffPolicyArg>,
fn with_backoff_policy<V>(self, v: V) -> Twhere
V: Into<BackoffPolicyArg>,
Sets the backoff policy configuration.
Source§fn with_retry_throttler<V>(self, v: V) -> Twhere
V: Into<RetryThrottlerArg>,
fn with_retry_throttler<V>(self, v: V) -> Twhere
V: Into<RetryThrottlerArg>,
Sets the retry throttler configuration.
Source§fn with_polling_error_policy<V>(self, v: V) -> Twhere
V: Into<PollingErrorPolicyArg>,
fn with_polling_error_policy<V>(self, v: V) -> Twhere
V: Into<PollingErrorPolicyArg>,
Sets the polling error policy configuration.
Source§fn with_polling_backoff_policy<V>(self, v: V) -> Twhere
V: Into<PollingBackoffPolicyArg>,
fn with_polling_backoff_policy<V>(self, v: V) -> Twhere
V: Into<PollingBackoffPolicyArg>,
Sets the polling backoff policy configuration.
Source§fn with_request_stream_channel_capacity(self, capacity: usize) -> T
fn with_request_stream_channel_capacity(self, capacity: usize) -> T
Sets the buffer capacity of the internal request channel for streaming RPCs. Read more
Source§fn with_custom_header(self, name: HeaderName, value: HeaderValue) -> Selfwhere
Self: Sized,
fn with_custom_header(self, name: HeaderName, value: HeaderValue) -> Selfwhere
Self: Sized,
Injects a custom HTTP header (or gRPC metadata) into this specific request. Read more