pub fn container(container: &Container) -> Result<(), ComponentValidationError>
Expand description
Validates a container component.
The only allowed components that are allowed are: action_row
, file
,
media_gallery
, section
, separator
and text_display
.
ยงErrors
For errors for specific components refer to the errors of the following functions:
If any except the allowed components are used if will fail with DisallowedChildren
.