Struct aws_sdk_databrew::types::DatetimeOptions
source · #[non_exhaustive]pub struct DatetimeOptions {
pub format: String,
pub timezone_offset: Option<String>,
pub locale_code: Option<String>,
}
Expand description
Represents additional options for correct interpretation of datetime parameters used in the Amazon S3 path of a dataset.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.format: String
Required option, that defines the datetime format used for a date parameter in the Amazon S3 path. Should use only supported datetime specifiers and separation characters, all literal a-z or A-Z characters should be escaped with single quotes. E.g. "MM.dd.yyyy-'at'-HH:mm".
timezone_offset: Option<String>
Optional value for a timezone offset of the datetime parameter value in the Amazon S3 path. Shouldn't be used if Format for this parameter includes timezone fields. If no offset specified, UTC is assumed.
locale_code: Option<String>
Optional value for a non-US locale code, needed for correct interpretation of some date formats.
Implementations§
source§impl DatetimeOptions
impl DatetimeOptions
sourcepub fn format(&self) -> &str
pub fn format(&self) -> &str
Required option, that defines the datetime format used for a date parameter in the Amazon S3 path. Should use only supported datetime specifiers and separation characters, all literal a-z or A-Z characters should be escaped with single quotes. E.g. "MM.dd.yyyy-'at'-HH:mm".
sourcepub fn timezone_offset(&self) -> Option<&str>
pub fn timezone_offset(&self) -> Option<&str>
Optional value for a timezone offset of the datetime parameter value in the Amazon S3 path. Shouldn't be used if Format for this parameter includes timezone fields. If no offset specified, UTC is assumed.
sourcepub fn locale_code(&self) -> Option<&str>
pub fn locale_code(&self) -> Option<&str>
Optional value for a non-US locale code, needed for correct interpretation of some date formats.
source§impl DatetimeOptions
impl DatetimeOptions
sourcepub fn builder() -> DatetimeOptionsBuilder
pub fn builder() -> DatetimeOptionsBuilder
Creates a new builder-style object to manufacture DatetimeOptions
.
Trait Implementations§
source§impl Clone for DatetimeOptions
impl Clone for DatetimeOptions
source§fn clone(&self) -> DatetimeOptions
fn clone(&self) -> DatetimeOptions
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for DatetimeOptions
impl Debug for DatetimeOptions
source§impl PartialEq for DatetimeOptions
impl PartialEq for DatetimeOptions
impl StructuralPartialEq for DatetimeOptions
Auto Trait Implementations§
impl Freeze for DatetimeOptions
impl RefUnwindSafe for DatetimeOptions
impl Send for DatetimeOptions
impl Sync for DatetimeOptions
impl Unpin for DatetimeOptions
impl UnwindSafe for DatetimeOptions
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> 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)
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> 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