pub fn label(label: &Label) -> Result<(), ComponentValidationError>Expand description
Ensure that a label is correct.
ยงErrors
Returns an error of type InvalidChildComponent if the provided nested
component is an ActionRow or a [Label]. Labels cannot contain other top-level
components.
Returns an error of type DisallowedChildren if the label contains components
that are disallowed in labels.
Refer to select_menu for potential errors when validating a select menu in the label.
Refer to text_input for potential errors when validating a text input in the label.
Refer to text_display for potential errors when validating a text display in the label.