Enum gapi_grpc::google::cloud::asset::v1p7beta1::partition_spec::PartitionKey[][src]

#[repr(i32)]pub enum PartitionKey {
    Unspecified,
    ReadTime,
    RequestTime,
}

This enum is used to determine the partition key column when exporting assets to BigQuery partitioned table(s). Note that, if the partition key is a timestamp column, the actual partition is based on its date value (expressed in UTC. see details in https://cloud.google.com/bigquery/docs/partitioned-tables#date_timestamp_partitioned_tables).

Variants

Unspecified

Unspecified partition key. If used, it means using non-partitioned table.

ReadTime

The time when the snapshot is taken. If specified as partition key, the result table(s) is partitoned by the additional timestamp column, readTime. If [read_time] in ExportAssetsRequest is specified, the readTime column’s value will be the same as it. Otherwise, its value will be the current time that is used to take the snapshot.

RequestTime

The time when the request is received and started to be processed. If specified as partition key, the result table(s) is partitoned by the requestTime column, an additional timestamp column representing when the request was received.

Implementations

impl PartitionKey[src]

pub fn is_valid(value: i32) -> bool[src]

Returns true if value is a variant of PartitionKey.

pub fn from_i32(value: i32) -> Option<PartitionKey>[src]

Converts an i32 to a PartitionKey, or None if value is not a valid variant.

Trait Implementations

impl Clone for PartitionKey[src]

impl Copy for PartitionKey[src]

impl Debug for PartitionKey[src]

impl Default for PartitionKey[src]

impl Eq for PartitionKey[src]

impl From<PartitionKey> for i32[src]

impl Hash for PartitionKey[src]

impl Ord for PartitionKey[src]

impl PartialEq<PartitionKey> for PartitionKey[src]

impl PartialOrd<PartitionKey> for PartitionKey[src]

impl StructuralEq for PartitionKey[src]

impl StructuralPartialEq for PartitionKey[src]

Auto Trait Implementations

impl RefUnwindSafe for PartitionKey

impl Send for PartitionKey

impl Sync for PartitionKey

impl Unpin for PartitionKey

impl UnwindSafe for PartitionKey

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<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

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

impl<T> Instrument 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>, 
[src]

impl<T> WithSubscriber for T[src]