#[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 ==.impl StructuralPartialEq for TimestampPartitionBuilder
Auto Trait Implementations§
impl Freeze for TimestampPartitionBuilder
impl RefUnwindSafe for TimestampPartitionBuilder
impl Send for TimestampPartitionBuilder
impl Sync for TimestampPartitionBuilder
impl Unpin for TimestampPartitionBuilder
impl UnwindSafe for TimestampPartitionBuilder
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
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> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more