#[non_exhaustive]pub struct TimestampPartitionBuilder { /* private fields */ }
Expand description
A builder for TimestampPartition
.
Implementations§
source§impl TimestampPartitionBuilder
impl TimestampPartitionBuilder
sourcepub fn attribute_name(self, input: impl Into<String>) -> Self
pub fn attribute_name(self, input: impl Into<String>) -> Self
The attribute name of the partition defined by a timestamp.
This field is required.sourcepub fn set_attribute_name(self, input: Option<String>) -> Self
pub fn set_attribute_name(self, input: Option<String>) -> Self
The attribute name of the partition defined by a timestamp.
sourcepub fn get_attribute_name(&self) -> &Option<String>
pub fn get_attribute_name(&self) -> &Option<String>
The attribute name of the partition defined by a timestamp.
sourcepub fn timestamp_format(self, input: impl Into<String>) -> Self
pub fn timestamp_format(self, input: impl Into<String>) -> Self
The timestamp format of a partition defined by a timestamp. The default format is seconds since epoch (January 1, 1970 at midnight UTC time).
sourcepub fn set_timestamp_format(self, input: Option<String>) -> Self
pub fn set_timestamp_format(self, input: Option<String>) -> Self
The timestamp format of a partition defined by a timestamp. The default format is seconds since epoch (January 1, 1970 at midnight UTC time).
sourcepub fn get_timestamp_format(&self) -> &Option<String>
pub fn get_timestamp_format(&self) -> &Option<String>
The timestamp format of a partition defined by a timestamp. The default format is seconds since epoch (January 1, 1970 at midnight UTC time).
sourcepub fn build(self) -> Result<TimestampPartition, BuildError>
pub fn build(self) -> Result<TimestampPartition, BuildError>
Consumes the builder and constructs a TimestampPartition
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for TimestampPartitionBuilder
impl Clone for TimestampPartitionBuilder
source§fn clone(&self) -> TimestampPartitionBuilder
fn clone(&self) -> TimestampPartitionBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for TimestampPartitionBuilder
impl Debug for TimestampPartitionBuilder
source§impl Default for TimestampPartitionBuilder
impl Default for TimestampPartitionBuilder
source§fn default() -> TimestampPartitionBuilder
fn default() -> TimestampPartitionBuilder
source§impl PartialEq for TimestampPartitionBuilder
impl PartialEq for TimestampPartitionBuilder
source§fn eq(&self, other: &TimestampPartitionBuilder) -> bool
fn eq(&self, other: &TimestampPartitionBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.