Struct aws_sdk_amplifyuibuilder::types::ValueMapping
source · #[non_exhaustive]pub struct ValueMapping {
pub display_value: Option<FormInputValueProperty>,
pub value: Option<FormInputValueProperty>,
}Expand description
Associates a complex object with a display value. Use ValueMapping to store how to represent complex objects when they are displayed.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.display_value: Option<FormInputValueProperty>The value to display for the complex object.
value: Option<FormInputValueProperty>The complex object.
Implementations§
source§impl ValueMapping
impl ValueMapping
sourcepub fn display_value(&self) -> Option<&FormInputValueProperty>
pub fn display_value(&self) -> Option<&FormInputValueProperty>
The value to display for the complex object.
sourcepub fn value(&self) -> Option<&FormInputValueProperty>
pub fn value(&self) -> Option<&FormInputValueProperty>
The complex object.
source§impl ValueMapping
impl ValueMapping
sourcepub fn builder() -> ValueMappingBuilder
pub fn builder() -> ValueMappingBuilder
Creates a new builder-style object to manufacture ValueMapping.
Trait Implementations§
source§impl Clone for ValueMapping
impl Clone for ValueMapping
source§fn clone(&self) -> ValueMapping
fn clone(&self) -> ValueMapping
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for ValueMapping
impl Debug for ValueMapping
source§impl PartialEq for ValueMapping
impl PartialEq for ValueMapping
source§fn eq(&self, other: &ValueMapping) -> bool
fn eq(&self, other: &ValueMapping) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for ValueMapping
Auto Trait Implementations§
impl Freeze for ValueMapping
impl RefUnwindSafe for ValueMapping
impl Send for ValueMapping
impl Sync for ValueMapping
impl Unpin for ValueMapping
impl UnwindSafe for ValueMapping
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
Mutably borrows from an owned value. Read more
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>
Converts
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>
Converts
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 moreCreates a shared type from an unshared type.