#[non_exhaustive]pub struct FieldConfigBuilder { /* private fields */ }Expand description
A builder for FieldConfig.
Implementations§
source§impl FieldConfigBuilder
impl FieldConfigBuilder
sourcepub fn position(self, input: FieldPosition) -> Self
pub fn position(self, input: FieldPosition) -> Self
Specifies the field position.
sourcepub fn set_position(self, input: Option<FieldPosition>) -> Self
pub fn set_position(self, input: Option<FieldPosition>) -> Self
Specifies the field position.
sourcepub fn get_position(&self) -> &Option<FieldPosition>
pub fn get_position(&self) -> &Option<FieldPosition>
Specifies the field position.
sourcepub fn set_excluded(self, input: Option<bool>) -> Self
pub fn set_excluded(self, input: Option<bool>) -> Self
Specifies whether to hide a field.
sourcepub fn get_excluded(&self) -> &Option<bool>
pub fn get_excluded(&self) -> &Option<bool>
Specifies whether to hide a field.
sourcepub fn input_type(self, input: FieldInputConfig) -> Self
pub fn input_type(self, input: FieldInputConfig) -> Self
Describes the configuration for the default input value to display for a field.
sourcepub fn set_input_type(self, input: Option<FieldInputConfig>) -> Self
pub fn set_input_type(self, input: Option<FieldInputConfig>) -> Self
Describes the configuration for the default input value to display for a field.
sourcepub fn get_input_type(&self) -> &Option<FieldInputConfig>
pub fn get_input_type(&self) -> &Option<FieldInputConfig>
Describes the configuration for the default input value to display for a field.
sourcepub fn validations(self, input: FieldValidationConfiguration) -> Self
pub fn validations(self, input: FieldValidationConfiguration) -> Self
Appends an item to validations.
To override the contents of this collection use set_validations.
The validations to perform on the value in the field.
sourcepub fn set_validations(
self,
input: Option<Vec<FieldValidationConfiguration>>
) -> Self
pub fn set_validations( self, input: Option<Vec<FieldValidationConfiguration>> ) -> Self
The validations to perform on the value in the field.
sourcepub fn get_validations(&self) -> &Option<Vec<FieldValidationConfiguration>>
pub fn get_validations(&self) -> &Option<Vec<FieldValidationConfiguration>>
The validations to perform on the value in the field.
sourcepub fn build(self) -> FieldConfig
pub fn build(self) -> FieldConfig
Consumes the builder and constructs a FieldConfig.
Trait Implementations§
source§impl Clone for FieldConfigBuilder
impl Clone for FieldConfigBuilder
source§fn clone(&self) -> FieldConfigBuilder
fn clone(&self) -> FieldConfigBuilder
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 FieldConfigBuilder
impl Debug for FieldConfigBuilder
source§impl Default for FieldConfigBuilder
impl Default for FieldConfigBuilder
source§fn default() -> FieldConfigBuilder
fn default() -> FieldConfigBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for FieldConfigBuilder
impl PartialEq for FieldConfigBuilder
source§fn eq(&self, other: &FieldConfigBuilder) -> bool
fn eq(&self, other: &FieldConfigBuilder) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for FieldConfigBuilder
Auto Trait Implementations§
impl Freeze for FieldConfigBuilder
impl RefUnwindSafe for FieldConfigBuilder
impl Send for FieldConfigBuilder
impl Sync for FieldConfigBuilder
impl Unpin for FieldConfigBuilder
impl UnwindSafe for FieldConfigBuilder
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.