Struct aws_sdk_amplifyuibuilder::types::Form
source · #[non_exhaustive]pub struct Form {Show 13 fields
pub app_id: String,
pub environment_name: String,
pub id: String,
pub name: String,
pub form_action_type: FormActionType,
pub style: Option<FormStyle>,
pub data_type: Option<FormDataTypeConfig>,
pub fields: HashMap<String, FieldConfig>,
pub sectional_elements: HashMap<String, SectionalElement>,
pub schema_version: String,
pub tags: Option<HashMap<String, String>>,
pub cta: Option<FormCta>,
pub label_decorator: Option<LabelDecorator>,
}Expand description
Contains the configuration settings for a Form user interface (UI) element for an Amplify app. A form is a component you can add to your project by specifying a data source as the default configuration for the 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.app_id: StringThe unique ID of the Amplify app associated with the form.
environment_name: StringThe name of the backend environment that is a part of the Amplify app.
id: StringThe unique ID of the form.
name: StringThe name of the form.
form_action_type: FormActionTypeThe operation to perform on the specified form.
style: Option<FormStyle>Stores the configuration for the form's style.
data_type: Option<FormDataTypeConfig>The type of data source to use to create the form.
fields: HashMap<String, FieldConfig>Stores the information about the form's fields.
sectional_elements: HashMap<String, SectionalElement>Stores the visual helper elements for the form that are not associated with any data.
schema_version: StringThe schema version of the form when it was imported.
One or more key-value pairs to use when tagging the form.
cta: Option<FormCta>Stores the call to action configuration for the form.
label_decorator: Option<LabelDecorator>Specifies an icon or decoration to display on the form.
Implementations§
source§impl Form
impl Form
sourcepub fn environment_name(&self) -> &str
pub fn environment_name(&self) -> &str
The name of the backend environment that is a part of the Amplify app.
sourcepub fn form_action_type(&self) -> &FormActionType
pub fn form_action_type(&self) -> &FormActionType
The operation to perform on the specified form.
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 fields(&self) -> &HashMap<String, FieldConfig>
pub fn fields(&self) -> &HashMap<String, FieldConfig>
Stores the information about the form's fields.
sourcepub fn sectional_elements(&self) -> &HashMap<String, SectionalElement>
pub fn sectional_elements(&self) -> &HashMap<String, SectionalElement>
Stores the visual helper elements for the form that are not associated with any data.
sourcepub fn schema_version(&self) -> &str
pub fn schema_version(&self) -> &str
The schema version of the form when it was imported.
One or more key-value pairs to use when tagging the form.
sourcepub fn label_decorator(&self) -> Option<&LabelDecorator>
pub fn label_decorator(&self) -> Option<&LabelDecorator>
Specifies an icon or decoration to display on the form.
Trait Implementations§
source§impl PartialEq for Form
impl PartialEq for Form
impl StructuralPartialEq for Form
Auto Trait Implementations§
impl Freeze for Form
impl RefUnwindSafe for Form
impl Send for Form
impl Sync for Form
impl Unpin for Form
impl UnwindSafe for Form
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