#[non_exhaustive]pub struct SplitReadStreamResponse {
pub primary_stream: Option<ReadStream>,
pub remainder_stream: Option<ReadStream>,
/* private fields */
}Expand description
Response message for SplitReadStream.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.primary_stream: Option<ReadStream>Primary stream, which contains the beginning portion of |original_stream|. An empty value indicates that the original stream can no longer be split.
remainder_stream: Option<ReadStream>Remainder stream, which contains the tail of |original_stream|. An empty value indicates that the original stream can no longer be split.
Implementations§
Source§impl SplitReadStreamResponse
impl SplitReadStreamResponse
Sourcepub fn set_primary_stream<T>(self, v: T) -> Selfwhere
T: Into<ReadStream>,
pub fn set_primary_stream<T>(self, v: T) -> Selfwhere
T: Into<ReadStream>,
Sets the value of primary_stream.
§Example
ⓘ
use google_cloud_bigquery::model::ReadStream;
let x = SplitReadStreamResponse::new().set_primary_stream(ReadStream::default()/* use setters */);Sourcepub fn set_or_clear_primary_stream<T>(self, v: Option<T>) -> Selfwhere
T: Into<ReadStream>,
pub fn set_or_clear_primary_stream<T>(self, v: Option<T>) -> Selfwhere
T: Into<ReadStream>,
Sets or clears the value of primary_stream.
§Example
ⓘ
use google_cloud_bigquery::model::ReadStream;
let x = SplitReadStreamResponse::new().set_or_clear_primary_stream(Some(ReadStream::default()/* use setters */));
let x = SplitReadStreamResponse::new().set_or_clear_primary_stream(None::<ReadStream>);Sourcepub fn set_remainder_stream<T>(self, v: T) -> Selfwhere
T: Into<ReadStream>,
pub fn set_remainder_stream<T>(self, v: T) -> Selfwhere
T: Into<ReadStream>,
Sets the value of remainder_stream.
§Example
ⓘ
use google_cloud_bigquery::model::ReadStream;
let x = SplitReadStreamResponse::new().set_remainder_stream(ReadStream::default()/* use setters */);Sourcepub fn set_or_clear_remainder_stream<T>(self, v: Option<T>) -> Selfwhere
T: Into<ReadStream>,
pub fn set_or_clear_remainder_stream<T>(self, v: Option<T>) -> Selfwhere
T: Into<ReadStream>,
Sets or clears the value of remainder_stream.
§Example
ⓘ
use google_cloud_bigquery::model::ReadStream;
let x = SplitReadStreamResponse::new().set_or_clear_remainder_stream(Some(ReadStream::default()/* use setters */));
let x = SplitReadStreamResponse::new().set_or_clear_remainder_stream(None::<ReadStream>);Trait Implementations§
Source§impl Clone for SplitReadStreamResponse
impl Clone for SplitReadStreamResponse
Source§impl Debug for SplitReadStreamResponse
impl Debug for SplitReadStreamResponse
Source§impl Default for SplitReadStreamResponse
impl Default for SplitReadStreamResponse
Source§impl Message for SplitReadStreamResponse
impl Message for SplitReadStreamResponse
Source§impl PartialEq for SplitReadStreamResponse
impl PartialEq for SplitReadStreamResponse
impl StructuralPartialEq for SplitReadStreamResponse
Auto Trait Implementations§
impl Freeze for SplitReadStreamResponse
impl RefUnwindSafe for SplitReadStreamResponse
impl Send for SplitReadStreamResponse
impl Sync for SplitReadStreamResponse
impl Unpin for SplitReadStreamResponse
impl UnsafeUnpin for SplitReadStreamResponse
impl UnwindSafe for SplitReadStreamResponse
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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