[][src]Struct gcp_client::google::cloud::bigquery::storage::v1::ReadSession

pub struct ReadSession {
    pub name: String,
    pub expire_time: Option<Timestamp>,
    pub data_format: i32,
    pub table: String,
    pub table_modifiers: Option<TableModifiers>,
    pub read_options: Option<TableReadOptions>,
    pub streams: Vec<ReadStream>,
    pub schema: Option<Schema>,
}

Information about the ReadSession.

Fields

name: String

Output only. Unique identifier for the session, in the form projects/{project_id}/locations/{location}/sessions/{session_id}.

expire_time: Option<Timestamp>

Output only. Time at which the session becomes invalid. After this time, subsequent requests to read this Session will return errors. The expire_time is automatically assigned and currently cannot be specified or updated.

data_format: i32

Immutable. Data format of the output data.

table: String

Immutable. Table that this ReadSession is reading from, in the form projects/{project_id}/datasets/{dataset_id}/tables/{table_id}

table_modifiers: Option<TableModifiers>

Optional. Any modifiers which are applied when reading from the specified table.

read_options: Option<TableReadOptions>

Optional. Read options for this session (e.g. column selection, filters).

streams: Vec<ReadStream>

Output only. A list of streams created with the session.

At least one stream is created with the session. In the future, larger request_stream_count values may result in this list being unpopulated, in that case, the user will need to use a List method to get the streams instead, which is not yet available.

schema: Option<Schema>

The schema for the read. If read_options.selected_fields is set, the schema may be different from the table schema as it will only contain the selected fields.

Implementations

impl ReadSession[src]

pub fn data_format(&self) -> DataFormat[src]

Returns the enum value of data_format, or the default if the field is set to an invalid enum value.

pub fn set_data_format(&mut self, value: DataFormat)[src]

Sets data_format to the provided enum value.

Trait Implementations

impl Clone for ReadSession[src]

impl Debug for ReadSession[src]

impl Default for ReadSession[src]

impl Message for ReadSession[src]

impl PartialEq<ReadSession> for ReadSession[src]

impl StructuralPartialEq for ReadSession[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]