Struct aws_sdk_amplifyuibuilder::types::CreateFormData
source · #[non_exhaustive]pub struct CreateFormData {
pub name: String,
pub data_type: Option<FormDataTypeConfig>,
pub form_action_type: FormActionType,
pub fields: HashMap<String, FieldConfig>,
pub style: Option<FormStyle>,
pub sectional_elements: HashMap<String, SectionalElement>,
pub schema_version: String,
pub cta: Option<FormCta>,
pub tags: Option<HashMap<String, String>>,
pub label_decorator: Option<LabelDecorator>,
}Expand description
Represents all of the information that is required to create a form.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: StringThe name of the form.
data_type: Option<FormDataTypeConfig>The type of data source to use to create the form.
form_action_type: FormActionTypeSpecifies whether to perform a create or update action on the form.
fields: HashMap<String, FieldConfig>The configuration information for the form's fields.
style: Option<FormStyle>The configuration for the form's style.
sectional_elements: HashMap<String, SectionalElement>The configuration information for the visual helper elements for the form. These elements are not associated with any data.
schema_version: StringThe schema version of the form.
cta: Option<FormCta>The FormCTA object that stores the call to action configuration for the form.
One or more key-value pairs to use when tagging the form data.
label_decorator: Option<LabelDecorator>Specifies an icon or decoration to display on the form.
Implementations§
source§impl CreateFormData
impl CreateFormData
sourcepub fn data_type(&self) -> Option<&FormDataTypeConfig>
pub fn data_type(&self) -> Option<&FormDataTypeConfig>
The type of data source to use to create the form.
sourcepub fn form_action_type(&self) -> &FormActionType
pub fn form_action_type(&self) -> &FormActionType
Specifies whether to perform a create or update action on the form.
sourcepub fn fields(&self) -> &HashMap<String, FieldConfig>
pub fn fields(&self) -> &HashMap<String, FieldConfig>
The configuration information for the form's fields.
sourcepub fn sectional_elements(&self) -> &HashMap<String, SectionalElement>
pub fn sectional_elements(&self) -> &HashMap<String, SectionalElement>
The configuration information for the visual helper elements for the form. These elements are not associated with any data.
sourcepub fn schema_version(&self) -> &str
pub fn schema_version(&self) -> &str
The schema version of the form.
sourcepub fn cta(&self) -> Option<&FormCta>
pub fn cta(&self) -> Option<&FormCta>
The FormCTA object that stores the call to action configuration for the form.
One or more key-value pairs to use when tagging the form data.
sourcepub fn label_decorator(&self) -> Option<&LabelDecorator>
pub fn label_decorator(&self) -> Option<&LabelDecorator>
Specifies an icon or decoration to display on the form.
source§impl CreateFormData
impl CreateFormData
sourcepub fn builder() -> CreateFormDataBuilder
pub fn builder() -> CreateFormDataBuilder
Creates a new builder-style object to manufacture CreateFormData.
Trait Implementations§
source§impl Clone for CreateFormData
impl Clone for CreateFormData
source§fn clone(&self) -> CreateFormData
fn clone(&self) -> CreateFormData
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for CreateFormData
impl Debug for CreateFormData
source§impl PartialEq for CreateFormData
impl PartialEq for CreateFormData
source§fn eq(&self, other: &CreateFormData) -> bool
fn eq(&self, other: &CreateFormData) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for CreateFormData
Auto Trait Implementations§
impl Freeze for CreateFormData
impl RefUnwindSafe for CreateFormData
impl Send for CreateFormData
impl Sync for CreateFormData
impl Unpin for CreateFormData
impl UnwindSafe for CreateFormData
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