Struct aws_sdk_amplifyuibuilder::types::ComponentChild
source · #[non_exhaustive]pub struct ComponentChild {
pub component_type: String,
pub name: String,
pub properties: HashMap<String, ComponentProperty>,
pub children: Option<Vec<ComponentChild>>,
pub events: Option<HashMap<String, ComponentEvent>>,
pub source_id: Option<String>,
}Expand description
A nested UI configuration within a parent 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.component_type: StringThe type of the child component.
name: StringThe name of the child component.
properties: HashMap<String, ComponentProperty>Describes the properties of the child component. You can't specify tags as a valid property for properties.
children: Option<Vec<ComponentChild>>The list of ComponentChild instances for this component.
events: Option<HashMap<String, ComponentEvent>>Describes the events that can be raised on the child component. Use for the workflow feature in Amplify Studio that allows you to bind events and actions to components.
source_id: Option<String>The unique ID of the child component in its original source system, such as Figma.
Implementations§
source§impl ComponentChild
impl ComponentChild
sourcepub fn component_type(&self) -> &str
pub fn component_type(&self) -> &str
The type of the child component.
sourcepub fn properties(&self) -> &HashMap<String, ComponentProperty>
pub fn properties(&self) -> &HashMap<String, ComponentProperty>
Describes the properties of the child component. You can't specify tags as a valid property for properties.
sourcepub fn children(&self) -> &[ComponentChild]
pub fn children(&self) -> &[ComponentChild]
The list of ComponentChild instances for this component.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .children.is_none().
source§impl ComponentChild
impl ComponentChild
sourcepub fn builder() -> ComponentChildBuilder
pub fn builder() -> ComponentChildBuilder
Creates a new builder-style object to manufacture ComponentChild.
Trait Implementations§
source§impl Clone for ComponentChild
impl Clone for ComponentChild
source§fn clone(&self) -> ComponentChild
fn clone(&self) -> ComponentChild
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for ComponentChild
impl Debug for ComponentChild
source§impl PartialEq for ComponentChild
impl PartialEq for ComponentChild
source§fn eq(&self, other: &ComponentChild) -> bool
fn eq(&self, other: &ComponentChild) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for ComponentChild
Auto Trait Implementations§
impl Freeze for ComponentChild
impl RefUnwindSafe for ComponentChild
impl Send for ComponentChild
impl Sync for ComponentChild
impl Unpin for ComponentChild
impl UnwindSafe for ComponentChild
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