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
source§fn eq(&self, other: &DatetimeOptions) -> bool
fn eq(&self, other: &DatetimeOptions) -> bool
self
and other
values to be equal, and is used
by ==
.