#[non_exhaustive]pub struct ValueMappingsBuilder { /* private fields */ }Expand description
A builder for ValueMappings.
Implementations§
source§impl ValueMappingsBuilder
impl ValueMappingsBuilder
sourcepub fn values(self, input: ValueMapping) -> Self
pub fn values(self, input: ValueMapping) -> Self
Appends an item to values.
To override the contents of this collection use set_values.
The value and display value pairs.
sourcepub fn set_values(self, input: Option<Vec<ValueMapping>>) -> Self
pub fn set_values(self, input: Option<Vec<ValueMapping>>) -> Self
The value and display value pairs.
sourcepub fn get_values(&self) -> &Option<Vec<ValueMapping>>
pub fn get_values(&self) -> &Option<Vec<ValueMapping>>
The value and display value pairs.
sourcepub fn binding_properties(
self,
k: impl Into<String>,
v: FormInputBindingPropertiesValue
) -> Self
pub fn binding_properties( self, k: impl Into<String>, v: FormInputBindingPropertiesValue ) -> Self
Adds a key-value pair to binding_properties.
To override the contents of this collection use set_binding_properties.
The information to bind fields to data at runtime.
sourcepub fn set_binding_properties(
self,
input: Option<HashMap<String, FormInputBindingPropertiesValue>>
) -> Self
pub fn set_binding_properties( self, input: Option<HashMap<String, FormInputBindingPropertiesValue>> ) -> Self
The information to bind fields to data at runtime.
sourcepub fn get_binding_properties(
&self
) -> &Option<HashMap<String, FormInputBindingPropertiesValue>>
pub fn get_binding_properties( &self ) -> &Option<HashMap<String, FormInputBindingPropertiesValue>>
The information to bind fields to data at runtime.
sourcepub fn build(self) -> Result<ValueMappings, BuildError>
pub fn build(self) -> Result<ValueMappings, BuildError>
Consumes the builder and constructs a ValueMappings.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for ValueMappingsBuilder
impl Clone for ValueMappingsBuilder
source§fn clone(&self) -> ValueMappingsBuilder
fn clone(&self) -> ValueMappingsBuilder
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 ValueMappingsBuilder
impl Debug for ValueMappingsBuilder
source§impl Default for ValueMappingsBuilder
impl Default for ValueMappingsBuilder
source§fn default() -> ValueMappingsBuilder
fn default() -> ValueMappingsBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for ValueMappingsBuilder
impl PartialEq for ValueMappingsBuilder
source§fn eq(&self, other: &ValueMappingsBuilder) -> bool
fn eq(&self, other: &ValueMappingsBuilder) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for ValueMappingsBuilder
Auto Trait Implementations§
impl Freeze for ValueMappingsBuilder
impl RefUnwindSafe for ValueMappingsBuilder
impl Send for ValueMappingsBuilder
impl Sync for ValueMappingsBuilder
impl Unpin for ValueMappingsBuilder
impl UnwindSafe for ValueMappingsBuilder
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.