Enum google_api_proto::google::cloud::asset::v1p7beta1::partition_spec::PartitionKey
source · #[repr(i32)]pub enum PartitionKey {
Unspecified = 0,
ReadTime = 1,
RequestTime = 2,
}
Expand description
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 = 0
Unspecified partition key. If used, it means using non-partitioned table.
ReadTime = 1
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 = 2
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§
source§impl PartitionKey
impl PartitionKey
source§impl PartitionKey
impl PartitionKey
sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
source§impl Clone for PartitionKey
impl Clone for PartitionKey
source§fn clone(&self) -> PartitionKey
fn clone(&self) -> PartitionKey
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for PartitionKey
impl Debug for PartitionKey
source§impl Default for PartitionKey
impl Default for PartitionKey
source§fn default() -> PartitionKey
fn default() -> PartitionKey
source§impl From<PartitionKey> for i32
impl From<PartitionKey> for i32
source§fn from(value: PartitionKey) -> i32
fn from(value: PartitionKey) -> i32
source§impl Hash for PartitionKey
impl Hash for PartitionKey
source§impl Ord for PartitionKey
impl Ord for PartitionKey
source§fn cmp(&self, other: &PartitionKey) -> Ordering
fn cmp(&self, other: &PartitionKey) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for PartitionKey
impl PartialEq for PartitionKey
source§fn eq(&self, other: &PartitionKey) -> bool
fn eq(&self, other: &PartitionKey) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for PartitionKey
impl PartialOrd for PartitionKey
source§fn partial_cmp(&self, other: &PartitionKey) -> Option<Ordering>
fn partial_cmp(&self, other: &PartitionKey) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl TryFrom<i32> for PartitionKey
impl TryFrom<i32> for PartitionKey
§type Error = UnknownEnumValue
type Error = UnknownEnumValue
source§fn try_from(value: i32) -> Result<PartitionKey, UnknownEnumValue>
fn try_from(value: i32) -> Result<PartitionKey, UnknownEnumValue>
impl Copy for PartitionKey
impl Eq for PartitionKey
impl StructuralPartialEq for PartitionKey
Auto Trait Implementations§
impl Freeze for PartitionKey
impl RefUnwindSafe for PartitionKey
impl Send for PartitionKey
impl Sync for PartitionKey
impl Unpin for PartitionKey
impl UnwindSafe for PartitionKey
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
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<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.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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