#[non_exhaustive]pub struct WriteStream {
pub name: String,
pub type: Type,
pub create_time: Option<Timestamp>,
pub commit_time: Option<Timestamp>,
pub table_schema: Option<TableSchema>,
pub write_mode: WriteMode,
pub location: String,
/* private fields */
}Expand description
Information about a single stream that gets data inside the storage system.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: StringOutput only. Name of the stream, in the form
projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}.
type: TypeImmutable. Type of the stream.
create_time: Option<Timestamp>Output only. Create time of the stream. For the _default stream, this is the creation_time of the table.
commit_time: Option<Timestamp>Output only. Commit time of the stream.
If a stream is of COMMITTED type, then it will have a commit_time same as
create_time. If the stream is of PENDING type, empty commit_time
means it is not committed.
table_schema: Option<TableSchema>Output only. The schema of the destination table. It is only returned in
CreateWriteStream response. Caller should generate data that’s
compatible with this schema to send in initial AppendRowsRequest.
The table schema could go out of date during the life time of the stream.
write_mode: WriteModeImmutable. Mode of the stream.
location: StringOutput only. The geographic location where the stream’s dataset resides. See https://cloud.google.com/bigquery/docs/locations for supported locations.
Implementations§
Source§impl WriteStream
impl WriteStream
Sourcepub fn set_create_time<T>(self, v: T) -> Self
pub fn set_create_time<T>(self, v: T) -> Self
Sets the value of create_time.
§Example
use wkt::Timestamp;
let x = WriteStream::new().set_create_time(Timestamp::default()/* use setters */);Sourcepub fn set_or_clear_create_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_create_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of create_time.
§Example
use wkt::Timestamp;
let x = WriteStream::new().set_or_clear_create_time(Some(Timestamp::default()/* use setters */));
let x = WriteStream::new().set_or_clear_create_time(None::<Timestamp>);Sourcepub fn set_commit_time<T>(self, v: T) -> Self
pub fn set_commit_time<T>(self, v: T) -> Self
Sets the value of commit_time.
§Example
use wkt::Timestamp;
let x = WriteStream::new().set_commit_time(Timestamp::default()/* use setters */);Sourcepub fn set_or_clear_commit_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_commit_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of commit_time.
§Example
use wkt::Timestamp;
let x = WriteStream::new().set_or_clear_commit_time(Some(Timestamp::default()/* use setters */));
let x = WriteStream::new().set_or_clear_commit_time(None::<Timestamp>);Sourcepub fn set_table_schema<T>(self, v: T) -> Selfwhere
T: Into<TableSchema>,
pub fn set_table_schema<T>(self, v: T) -> Selfwhere
T: Into<TableSchema>,
Sets the value of table_schema.
§Example
use google_cloud_bigquery::model::TableSchema;
let x = WriteStream::new().set_table_schema(TableSchema::default()/* use setters */);Sourcepub fn set_or_clear_table_schema<T>(self, v: Option<T>) -> Selfwhere
T: Into<TableSchema>,
pub fn set_or_clear_table_schema<T>(self, v: Option<T>) -> Selfwhere
T: Into<TableSchema>,
Sets or clears the value of table_schema.
§Example
use google_cloud_bigquery::model::TableSchema;
let x = WriteStream::new().set_or_clear_table_schema(Some(TableSchema::default()/* use setters */));
let x = WriteStream::new().set_or_clear_table_schema(None::<TableSchema>);Sourcepub fn set_write_mode<T: Into<WriteMode>>(self, v: T) -> Self
pub fn set_write_mode<T: Into<WriteMode>>(self, v: T) -> Self
Sets the value of write_mode.
§Example
use google_cloud_bigquery::model::write_stream::WriteMode;
let x0 = WriteStream::new().set_write_mode(WriteMode::Insert);Trait Implementations§
Source§impl Clone for WriteStream
impl Clone for WriteStream
Source§impl Debug for WriteStream
impl Debug for WriteStream
Source§impl Default for WriteStream
impl Default for WriteStream
Source§impl Message for WriteStream
impl Message for WriteStream
Source§impl PartialEq for WriteStream
impl PartialEq for WriteStream
impl StructuralPartialEq for WriteStream
Auto Trait Implementations§
impl Freeze for WriteStream
impl RefUnwindSafe for WriteStream
impl Send for WriteStream
impl Sync for WriteStream
impl Unpin for WriteStream
impl UnsafeUnpin for WriteStream
impl UnwindSafe for WriteStream
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
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>
T in a tonic::Request