Struct aws_sdk_mturk::types::builders::LocaleBuilder
source · #[non_exhaustive]pub struct LocaleBuilder { /* private fields */ }
Expand description
A builder for Locale
.
Implementations§
source§impl LocaleBuilder
impl LocaleBuilder
sourcepub fn country(self, input: impl Into<String>) -> Self
pub fn country(self, input: impl Into<String>) -> Self
The country of the locale. Must be a valid ISO 3166 country code. For example, the code US refers to the United States of America.
This field is required.sourcepub fn set_country(self, input: Option<String>) -> Self
pub fn set_country(self, input: Option<String>) -> Self
The country of the locale. Must be a valid ISO 3166 country code. For example, the code US refers to the United States of America.
sourcepub fn get_country(&self) -> &Option<String>
pub fn get_country(&self) -> &Option<String>
The country of the locale. Must be a valid ISO 3166 country code. For example, the code US refers to the United States of America.
sourcepub fn subdivision(self, input: impl Into<String>) -> Self
pub fn subdivision(self, input: impl Into<String>) -> Self
The state or subdivision of the locale. A valid ISO 3166-2 subdivision code. For example, the code WA refers to the state of Washington.
sourcepub fn set_subdivision(self, input: Option<String>) -> Self
pub fn set_subdivision(self, input: Option<String>) -> Self
The state or subdivision of the locale. A valid ISO 3166-2 subdivision code. For example, the code WA refers to the state of Washington.
sourcepub fn get_subdivision(&self) -> &Option<String>
pub fn get_subdivision(&self) -> &Option<String>
The state or subdivision of the locale. A valid ISO 3166-2 subdivision code. For example, the code WA refers to the state of Washington.
Trait Implementations§
source§impl Clone for LocaleBuilder
impl Clone for LocaleBuilder
source§fn clone(&self) -> LocaleBuilder
fn clone(&self) -> LocaleBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for LocaleBuilder
impl Debug for LocaleBuilder
source§impl Default for LocaleBuilder
impl Default for LocaleBuilder
source§fn default() -> LocaleBuilder
fn default() -> LocaleBuilder
source§impl PartialEq for LocaleBuilder
impl PartialEq for LocaleBuilder
source§fn eq(&self, other: &LocaleBuilder) -> bool
fn eq(&self, other: &LocaleBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for LocaleBuilder
Auto Trait Implementations§
impl Freeze for LocaleBuilder
impl RefUnwindSafe for LocaleBuilder
impl Send for LocaleBuilder
impl Sync for LocaleBuilder
impl Unpin for LocaleBuilder
impl UnwindSafe for LocaleBuilder
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