#[non_exhaustive]pub struct UserContextDataTypeBuilder { /* private fields */ }
Expand description
A builder for UserContextDataType
.
Implementations§
source§impl UserContextDataTypeBuilder
impl UserContextDataTypeBuilder
sourcepub fn ip_address(self, input: impl Into<String>) -> Self
pub fn ip_address(self, input: impl Into<String>) -> Self
The source IP address of your user's device.
sourcepub fn set_ip_address(self, input: Option<String>) -> Self
pub fn set_ip_address(self, input: Option<String>) -> Self
The source IP address of your user's device.
sourcepub fn get_ip_address(&self) -> &Option<String>
pub fn get_ip_address(&self) -> &Option<String>
The source IP address of your user's device.
sourcepub fn encoded_data(self, input: impl Into<String>) -> Self
pub fn encoded_data(self, input: impl Into<String>) -> Self
Encoded device-fingerprint details that your app collected with the Amazon Cognito context data collection library. For more information, see Adding user device and session data to API requests.
sourcepub fn set_encoded_data(self, input: Option<String>) -> Self
pub fn set_encoded_data(self, input: Option<String>) -> Self
Encoded device-fingerprint details that your app collected with the Amazon Cognito context data collection library. For more information, see Adding user device and session data to API requests.
sourcepub fn get_encoded_data(&self) -> &Option<String>
pub fn get_encoded_data(&self) -> &Option<String>
Encoded device-fingerprint details that your app collected with the Amazon Cognito context data collection library. For more information, see Adding user device and session data to API requests.
sourcepub fn build(self) -> UserContextDataType
pub fn build(self) -> UserContextDataType
Consumes the builder and constructs a UserContextDataType
.
Trait Implementations§
source§impl Clone for UserContextDataTypeBuilder
impl Clone for UserContextDataTypeBuilder
source§fn clone(&self) -> UserContextDataTypeBuilder
fn clone(&self) -> UserContextDataTypeBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for UserContextDataTypeBuilder
impl Debug for UserContextDataTypeBuilder
source§impl Default for UserContextDataTypeBuilder
impl Default for UserContextDataTypeBuilder
source§fn default() -> UserContextDataTypeBuilder
fn default() -> UserContextDataTypeBuilder
source§impl PartialEq for UserContextDataTypeBuilder
impl PartialEq for UserContextDataTypeBuilder
source§fn eq(&self, other: &UserContextDataTypeBuilder) -> bool
fn eq(&self, other: &UserContextDataTypeBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for UserContextDataTypeBuilder
Auto Trait Implementations§
impl Freeze for UserContextDataTypeBuilder
impl RefUnwindSafe for UserContextDataTypeBuilder
impl Send for UserContextDataTypeBuilder
impl Sync for UserContextDataTypeBuilder
impl Unpin for UserContextDataTypeBuilder
impl UnwindSafe for UserContextDataTypeBuilder
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