pub struct Dataset {
    pub dataset_reference: DatasetReference,
    pub friendly_name: Option<String>,
    pub id: Option<String>,
    pub kind: Option<String>,
    pub labels: Option<HashMap<String, String>>,
    pub location: Option<String>,
}

Fields

dataset_reference: DatasetReference

[Required] A reference that identifies the dataset.

friendly_name: Option<String>

A descriptive name for the dataset, if one exists.

id: Option<String>

The fully-qualified, unique, opaque ID of the dataset.

kind: Option<String>

The resource type. This property always returns the value "bigquery#dataset".

labels: Option<HashMap<String, String>>

The labels associated with this dataset. You can use these to organize and group your datasets.

location: Option<String>

The geographic location where the data resides.

Implementations

Returns the project id of this dataset.

Returns the dataset id of this dataset.

Sets the location of this dataset.

Arguments
  • location - The location of this dataset

Sets the friendly name of this dataset.

Arguments
  • friendly_name - The friendly name of this dataset

Adds a label to this dataset.

Arguments
  • key - The label name.
  • value - The label value.

Creates a new table.

Arguments
  • client - The client API.
  • table - The table definition.

Deletes an existing table.

Arguments
  • client - The client API.
  • delete_contents - A flag defining if a dataset must be deleted even if it contains some tables, views, …

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

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

Deserialize this value from the given Serde deserializer. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

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

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

Calls U::from(self).

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

The resulting type after obtaining ownership.

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

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

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

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

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