pub struct TimePartitioning {
pub expiration_ms: Option<String>,
pub field: Option<String>,
pub require_partition_filter: Option<bool>,
pub type: String,
}
Fields
expiration_ms: Option<String>
[Optional] Number of milliseconds for which to keep the storage for partitions in the table. The storage in a partition will have an expiration time of its partition time plus this value.
field: Option<String>
[Beta] [Optional] If not set, the table is partitioned by pseudo column, referenced via either ‘_PARTITIONTIME’ as TIMESTAMP type, or ‘_PARTITIONDATE’ as DATE type. If field is specified, the table is instead partitioned by this field. The field must be a top-level TIMESTAMP or DATE field. Its mode must be NULLABLE or REQUIRED.
require_partition_filter: Option<bool>
type: String
[Required] The supported types are DAY, HOUR, MONTH, and YEAR, which will generate one partition per day, hour, month, and year, respectively. When the type is not specified, the default behavior is DAY.
Implementations
sourceimpl TimePartitioning
impl TimePartitioning
Trait Implementations
sourceimpl Clone for TimePartitioning
impl Clone for TimePartitioning
sourcefn clone(&self) -> TimePartitioning
fn clone(&self) -> TimePartitioning
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for TimePartitioning
impl Debug for TimePartitioning
sourceimpl Default for TimePartitioning
impl Default for TimePartitioning
sourcefn default() -> TimePartitioning
fn default() -> TimePartitioning
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for TimePartitioning
impl<'de> Deserialize<'de> for TimePartitioning
sourcefn 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
sourceimpl Serialize for TimePartitioning
impl Serialize 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more