Struct google_cloud_bigquery::http::table::TimePartitioning
source · pub struct TimePartitioning {
pub partition_type: TimePartitionType,
pub expiration_ms: Option<i64>,
pub field: Option<String>,
}Fields§
§partition_type: TimePartitionTypeRequired. The supported types are DAY, HOUR, MONTH, and YEAR, which will generate one partition per day, hour, month, and year, respectively.
expiration_ms: Option<i64>Optional. Number of milliseconds for which to keep the storage for a partition. A wrapper is used here because 0 is an invalid value.
field: Option<String>Optional. If not set, the table is partitioned by pseudo column ‘_PARTITIONTIME’; if set, the table is partitioned by this field. The field must be a top-level TIMESTAMP or DATE field. Its mode must be NULLABLE or REQUIRED. A wrapper is used here because an empty string is an invalid value.
Trait Implementations§
source§impl Clone for TimePartitioning
impl Clone for TimePartitioning
source§fn clone(&self) -> TimePartitioning
fn clone(&self) -> TimePartitioning
Returns a copy 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 TimePartitioning
impl Debug for TimePartitioning
source§impl Default for TimePartitioning
impl Default for TimePartitioning
source§fn default() -> TimePartitioning
fn default() -> TimePartitioning
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for TimePartitioning
impl<'de> Deserialize<'de> for TimePartitioning
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
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 PartialEq<TimePartitioning> for TimePartitioning
impl PartialEq<TimePartitioning> for TimePartitioning
source§fn eq(&self, other: &TimePartitioning) -> bool
fn eq(&self, other: &TimePartitioning) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for TimePartitioning
impl Serialize for TimePartitioning
impl Eq for TimePartitioning
impl StructuralEq for TimePartitioning
impl StructuralPartialEq for TimePartitioning
Auto Trait Implementations§
impl RefUnwindSafe for TimePartitioning
impl Send for TimePartitioning
impl Sync for TimePartitioning
impl Unpin for TimePartitioning
impl UnwindSafe for TimePartitioning
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
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§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>
Wrap the input message
T in a tonic::Request