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§
Source§impl TimePartitioning
impl TimePartitioning
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
Auto Trait Implementations§
impl Freeze for TimePartitioning
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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