Struct aws_sdk_amplifyuibuilder::types::ActionParameters
source · #[non_exhaustive]pub struct ActionParameters {
pub type: Option<ComponentProperty>,
pub url: Option<ComponentProperty>,
pub anchor: Option<ComponentProperty>,
pub target: Option<ComponentProperty>,
pub global: Option<ComponentProperty>,
pub model: Option<String>,
pub id: Option<ComponentProperty>,
pub fields: Option<HashMap<String, ComponentProperty>>,
pub state: Option<MutationActionSetStateParameter>,
}Expand description
Represents the event action configuration for an element of a Component or ComponentChild. Use for the workflow feature in Amplify Studio that allows you to bind events and actions to components. ActionParameters defines the action that is performed when an event occurs on the component.
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.type: Option<ComponentProperty>The type of navigation action. Valid values are url and anchor. This value is required for a navigation action.
url: Option<ComponentProperty>The URL to the location to open. Specify this value for a navigation action.
anchor: Option<ComponentProperty>The HTML anchor link to the location to open. Specify this value for a navigation action.
target: Option<ComponentProperty>The element within the same component to modify when the action occurs.
global: Option<ComponentProperty>Specifies whether the user should be signed out globally. Specify this value for an auth sign out action.
model: Option<String>The name of the data model. Use when the action performs an operation on an Amplify DataStore model.
id: Option<ComponentProperty>The unique ID of the component that the ActionParameters apply to.
fields: Option<HashMap<String, ComponentProperty>>A dictionary of key-value pairs mapping Amplify Studio properties to fields in a data model. Use when the action performs an operation on an Amplify DataStore model.
state: Option<MutationActionSetStateParameter>A key-value pair that specifies the state property name and its initial value.
Implementations§
source§impl ActionParameters
impl ActionParameters
sourcepub fn type(&self) -> Option<&ComponentProperty>
pub fn type(&self) -> Option<&ComponentProperty>
The type of navigation action. Valid values are url and anchor. This value is required for a navigation action.
sourcepub fn url(&self) -> Option<&ComponentProperty>
pub fn url(&self) -> Option<&ComponentProperty>
The URL to the location to open. Specify this value for a navigation action.
sourcepub fn anchor(&self) -> Option<&ComponentProperty>
pub fn anchor(&self) -> Option<&ComponentProperty>
The HTML anchor link to the location to open. Specify this value for a navigation action.
sourcepub fn target(&self) -> Option<&ComponentProperty>
pub fn target(&self) -> Option<&ComponentProperty>
The element within the same component to modify when the action occurs.
sourcepub fn global(&self) -> Option<&ComponentProperty>
pub fn global(&self) -> Option<&ComponentProperty>
Specifies whether the user should be signed out globally. Specify this value for an auth sign out action.
sourcepub fn model(&self) -> Option<&str>
pub fn model(&self) -> Option<&str>
The name of the data model. Use when the action performs an operation on an Amplify DataStore model.
sourcepub fn id(&self) -> Option<&ComponentProperty>
pub fn id(&self) -> Option<&ComponentProperty>
The unique ID of the component that the ActionParameters apply to.
sourcepub fn fields(&self) -> Option<&HashMap<String, ComponentProperty>>
pub fn fields(&self) -> Option<&HashMap<String, ComponentProperty>>
A dictionary of key-value pairs mapping Amplify Studio properties to fields in a data model. Use when the action performs an operation on an Amplify DataStore model.
sourcepub fn state(&self) -> Option<&MutationActionSetStateParameter>
pub fn state(&self) -> Option<&MutationActionSetStateParameter>
A key-value pair that specifies the state property name and its initial value.
source§impl ActionParameters
impl ActionParameters
sourcepub fn builder() -> ActionParametersBuilder
pub fn builder() -> ActionParametersBuilder
Creates a new builder-style object to manufacture ActionParameters.
Trait Implementations§
source§impl Clone for ActionParameters
impl Clone for ActionParameters
source§fn clone(&self) -> ActionParameters
fn clone(&self) -> ActionParameters
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for ActionParameters
impl Debug for ActionParameters
source§impl PartialEq for ActionParameters
impl PartialEq for ActionParameters
source§fn eq(&self, other: &ActionParameters) -> bool
fn eq(&self, other: &ActionParameters) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for ActionParameters
Auto Trait Implementations§
impl Freeze for ActionParameters
impl RefUnwindSafe for ActionParameters
impl Send for ActionParameters
impl Sync for ActionParameters
impl Unpin for ActionParameters
impl UnwindSafe for ActionParameters
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