#[non_exhaustive]pub struct PartitionSpec {
pub partition_key: PartitionKey,
/* private fields */
}Expand description
Specifications of BigQuery partitioned table as export destination.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.partition_key: PartitionKeyThe partition key for BigQuery partitioned table.
Implementations§
Source§impl PartitionSpec
impl PartitionSpec
pub fn new() -> Self
Sourcepub fn set_partition_key<T: Into<PartitionKey>>(self, v: T) -> Self
pub fn set_partition_key<T: Into<PartitionKey>>(self, v: T) -> Self
Sets the value of partition_key.
§Example
ⓘ
use google_cloud_asset_v1::model::partition_spec::PartitionKey;
let x0 = PartitionSpec::new().set_partition_key(PartitionKey::ReadTime);
let x1 = PartitionSpec::new().set_partition_key(PartitionKey::RequestTime);Trait Implementations§
Source§impl Clone for PartitionSpec
impl Clone for PartitionSpec
Source§fn clone(&self) -> PartitionSpec
fn clone(&self) -> PartitionSpec
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PartitionSpec
impl Debug for PartitionSpec
Source§impl Default for PartitionSpec
impl Default for PartitionSpec
Source§fn default() -> PartitionSpec
fn default() -> PartitionSpec
Returns the “default value” for a type. Read more
Source§impl Message for PartitionSpec
impl Message for PartitionSpec
Source§impl PartialEq for PartitionSpec
impl PartialEq for PartitionSpec
impl StructuralPartialEq for PartitionSpec
Auto Trait Implementations§
impl Freeze for PartitionSpec
impl RefUnwindSafe for PartitionSpec
impl Send for PartitionSpec
impl Sync for PartitionSpec
impl Unpin for PartitionSpec
impl UnsafeUnpin for PartitionSpec
impl UnwindSafe for PartitionSpec
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
Mutably borrows from an owned value. Read more