pub struct Dataset {
Show 21 fields pub access: Option<Vec<DatasetAccess>>, pub creation_time: Option<i64>, pub dataset_reference: Option<DatasetReference>, pub default_collation: Option<String>, pub default_encryption_configuration: Option<EncryptionConfiguration>, pub default_partition_expiration_ms: Option<i64>, pub default_table_expiration_ms: Option<i64>, pub description: Option<String>, pub etag: Option<String>, pub friendly_name: Option<String>, pub id: Option<String>, pub is_case_insensitive: Option<bool>, pub kind: Option<String>, pub labels: Option<HashMap<String, String>>, pub last_modified_time: Option<i64>, pub location: Option<String>, pub max_time_travel_hours: Option<i64>, pub satisfies_pzs: Option<bool>, pub self_link: Option<String>, pub storage_billing_model: Option<String>, pub tags: Option<Vec<DatasetTags>>,
}
Expand description

There is no detailed description.

Activities

This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).

Fields§

§access: Option<Vec<DatasetAccess>>

[Optional] An array of objects that define dataset access for one or more entities. You can set this property when inserting or updating a dataset in order to control who is allowed to access the data. If unspecified at dataset creation time, BigQuery adds default dataset access for the following entities: access.specialGroup: projectReaders; access.role: READER; access.specialGroup: projectWriters; access.role: WRITER; access.specialGroup: projectOwners; access.role: OWNER; access.userByEmail: [dataset creator email]; access.role: OWNER;

§creation_time: Option<i64>

[Output-only] The time when this dataset was created, in milliseconds since the epoch.

§dataset_reference: Option<DatasetReference>

[Required] A reference that identifies the dataset.

§default_collation: Option<String>

[Output-only] The default collation of the dataset.

§default_encryption_configuration: Option<EncryptionConfiguration>

no description provided

§default_partition_expiration_ms: Option<i64>

[Optional] The default partition expiration for all partitioned tables in the dataset, in milliseconds. Once this property is set, all newly-created partitioned tables in the dataset will have an expirationMs property in the timePartitioning settings set to this value, and changing the value will only affect new tables, not existing ones. The storage in a partition will have an expiration time of its partition time plus this value. Setting this property overrides the use of defaultTableExpirationMs for partitioned tables: only one of defaultTableExpirationMs and defaultPartitionExpirationMs will be used for any new partitioned table. If you provide an explicit timePartitioning.expirationMs when creating or updating a partitioned table, that value takes precedence over the default partition expiration time indicated by this property.

§default_table_expiration_ms: Option<i64>

[Optional] The default lifetime of all tables in the dataset, in milliseconds. The minimum value is 3600000 milliseconds (one hour). Once this property is set, all newly-created tables in the dataset will have an expirationTime property set to the creation time plus the value in this property, and changing the value will only affect new tables, not existing ones. When the expirationTime for a given table is reached, that table will be deleted automatically. If a table’s expirationTime is modified or removed before the table expires, or if you provide an explicit expirationTime when creating a table, that value takes precedence over the default expiration time indicated by this property.

§description: Option<String>

[Optional] A user-friendly description of the dataset.

§etag: Option<String>

[Output-only] A hash of the resource.

§friendly_name: Option<String>

[Optional] A descriptive name for the dataset.

§id: Option<String>

[Output-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.

§is_case_insensitive: Option<bool>

[Optional] Indicates if table names are case insensitive in the dataset.

§kind: Option<String>

[Output-only] The resource type.

§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.

§last_modified_time: Option<i64>

[Output-only] The date when this dataset or any of its tables was last modified, in milliseconds since the epoch.

§location: Option<String>

The geographic location where the dataset should reside. The default value is US. See details at https://cloud.google.com/bigquery/docs/locations.

§max_time_travel_hours: Option<i64>

[Optional] Number of hours for the max time travel for all tables in the dataset.

§satisfies_pzs: Option<bool>

[Output-only] Reserved for future use.

§self_link: Option<String>

[Output-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.

§storage_billing_model: Option<String>

[Optional] Storage billing model to be used for all tables in the dataset. Can be set to PHYSICAL. Default is LOGICAL.

§tags: Option<Vec<DatasetTags>>

[Optional]The tags associated with this dataset. Tag keys are globally unique.

Trait Implementations§

source§

impl Clone for Dataset

source§

fn clone(&self) -> Dataset

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Dataset

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for Dataset

source§

fn default() -> Dataset

Returns the “default value” for a type. Read more
source§

impl<'de> Deserialize<'de> for Dataset

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Serialize for Dataset

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl RequestValue for Dataset

source§

impl Resource for Dataset

source§

impl ResponseResult for Dataset

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere T: for<'de> Deserialize<'de>,