pub struct Table {Show 30 fields
pub kind: String,
pub etag: String,
pub id: String,
pub self_link: String,
pub table_reference: TableReference,
pub friendly_name: Option<String>,
pub description: Option<String>,
pub labels: Option<HashMap<String, String>>,
pub schema: Option<TableSchema>,
pub time_partitioning: Option<TimePartitioning>,
pub range_partitioning: Option<RangePartitioning>,
pub clustering: Option<Clustering>,
pub require_partition_filter: Option<bool>,
pub num_bytes: Option<i64>,
pub num_long_term_bytes: i64,
pub num_rows: u64,
pub creation_time: i64,
pub expiration_time: Option<i64>,
pub last_modified_time: u64,
pub table_type: String,
pub view: Option<ViewDefinition>,
pub materialized_view: Option<MaterializedViewDefinition>,
pub external_data_configuration: Option<ExternalDataConfiguration>,
pub location: String,
pub streaming_buffer: Option<Streamingbuffer>,
pub encryption_configuration: Option<EncryptionConfiguration>,
pub snapshot_definition: Option<SnapshotDefinition>,
pub default_collation: Option<Collation>,
pub clone_definition: Option<CloneDefinition>,
pub max_staleness: Option<String>,
}Fields§
§kind: StringOutput only. The resource type.
etag: StringOutput only. A hash of the resource.
id: StringOutput only. The fully-qualified unique name of the dataset in the format projectId:datasetId. The dataset name without the project name is given in the datasetId field. When creating a new dataset, leave this field blank, and instead specify the datasetId field.
self_link: StringOutput only. A URL that can be used to access the resource again. You can use this URL in Get or Update requests to the resource.
table_reference: TableReferenceRequired. Reference describing the ID of this table.
friendly_name: Option<String>Optional. A descriptive name for the dataset.
description: Option<String>Optional. Optional. A user-friendly description of the dataset.
labels: Option<HashMap<String, String>>The labels associated with this dataset. You can use these to organize and group your datasets. You can set this property when inserting or updating a dataset. See Creating and Updating Dataset Labels for more information.
An object containing a list of “key”: value pairs. Example: { “name”: “wrench”, “mass”: “1.3kg”, “count”: “3” }.
schema: Option<TableSchema>Optional. Describes the schema of this table.
time_partitioning: Option<TimePartitioning>If specified, configures time-based partitioning for this table.
range_partitioning: Option<RangePartitioning>If specified, configures range partitioning for this table.
clustering: Option<Clustering>Clustering specification for the table. Must be specified with time-based partitioning, data in the table will be first partitioned and subsequently clustered.
require_partition_filter: Option<bool>Optional. If set to true, queries over this table require a partition filter that can be used for partition elimination to be specified.
num_bytes: Option<i64>Output only. The size of this table in logical bytes, excluding any data in the streaming buffer.
num_long_term_bytes: i64Output only. The number of logical bytes in the table that are considered “long-term storage”.
num_rows: u64Output only. The number of rows of data in this table, excluding any data in the streaming buffer.
creation_time: i64Output only. The time when this table was created, in milliseconds since the epoch.
expiration_time: Option<i64>Optional. The time when this table expires, in milliseconds since the epoch. If not present, the table will persist indefinitely. Expired tables will be deleted and their storage reclaimed. The defaultTableExpirationMs property of the encapsulating dataset can be used to set a default expirationTime on newly created tables.
last_modified_time: u64Output only. The time when this table was last modified, in milliseconds since the epoch.
table_type: StringOutput only. Describes the table type. The following values are supported:
TABLE: A normal BigQuery table. VIEW: A virtual table defined by a SQL query. EXTERNAL: A table that references data stored in an external storage system, such as Google Cloud Storage. MATERIALIZED_VIEW: A precomputed view defined by a SQL query. SNAPSHOT: An immutable BigQuery table that preserves the contents of a base table at a particular time. See additional information on table snapshots. The default value is TABLE.
view: Option<ViewDefinition>Optional. The view definition.
materialized_view: Option<MaterializedViewDefinition>Optional. The materialized view definition.
external_data_configuration: Option<ExternalDataConfiguration>Optional. Describes the data format, location, and other properties of a table stored outside of BigQuery. By defining these properties, the data source can then be queried as if it were a standard BigQuery table.
location: StringOutput only. The geographic location where the table resides. This value is inherited from the dataset.
streaming_buffer: Option<Streamingbuffer>Output only. Contains information regarding this table’s streaming buffer, if one is present. This field will be absent if the table is not being streamed to or if there is no data in the streaming buffer.
encryption_configuration: Option<EncryptionConfiguration>Custom encryption configuration (e.g., Cloud KMS keys).
snapshot_definition: Option<SnapshotDefinition>Output only. Contains information about the snapshot. This value is set via snapshot creation.
default_collation: Option<Collation>Optional. Defines the default collation specification of new STRING fields in the table. During table creation or update, if a STRING field is added to this table without explicit collation specified, then the table inherits the table default collation. A change to this field affects only fields added afterwards, and does not alter the existing fields. The following values are supported:
‘und:ci’: undetermined locale, case insensitive. ‘’: empty string. Default to case-sensitive behavior.
clone_definition: Option<CloneDefinition>Output only. Contains information about the clone. This value is set via the clone operation.
max_staleness: Option<String>Optional. The maximum staleness of data that could be returned when the table (or stale MV) is queried. Staleness encoded as a string encoding of sql IntervalValue type.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Table
impl<'de> Deserialize<'de> for Table
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for Table
impl StructuralPartialEq for Table
Auto Trait Implementations§
impl Freeze for Table
impl RefUnwindSafe for Table
impl Send for Table
impl Sync for Table
impl Unpin for Table
impl UnwindSafe for Table
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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