pub enum ActionsElement {
Show 20 variants
Button(ButtonElement),
Checkboxes(CheckboxesElement),
DatePicker(DatePickerElement),
DatetimePicker(DatetimePickerElement),
MultiStaticSelect(MultiStaticSelectElement),
MultiExternalSelect(MultiExternalSelectElement),
MultiUsersSelect(MultiUsersSelectElement),
MultiConversationsSelect(MultiConversationsSelectElement),
MultiChannelsSelect(MultiChannelsSelectElement),
Overflow(OverflowElement),
RadioButtons(RadioButtonsElement),
RichTextInput(RichTextInputElement),
StaticSelect(StaticSelectElement),
ExternalSelect(ExternalSelectElement),
UsersSelect(UsersSelectElement),
ConversationsSelect(ConversationsSelectElement),
ChannelsSelect(ChannelsSelectElement),
TimePicker(TimePickerElement),
WorkflowButton(WorkflowButtonElement),
Unknown(Value),
}Expand description
An element allowed in an actions block. https://docs.slack.dev/reference/block-kit/blocks/actions-block
Variants§
Button(ButtonElement)
Checkboxes(CheckboxesElement)
DatePicker(DatePickerElement)
DatetimePicker(DatetimePickerElement)
MultiStaticSelect(MultiStaticSelectElement)
MultiExternalSelect(MultiExternalSelectElement)
MultiUsersSelect(MultiUsersSelectElement)
MultiConversationsSelect(MultiConversationsSelectElement)
MultiChannelsSelect(MultiChannelsSelectElement)
Overflow(OverflowElement)
RadioButtons(RadioButtonsElement)
RichTextInput(RichTextInputElement)
StaticSelect(StaticSelectElement)
ExternalSelect(ExternalSelectElement)
UsersSelect(UsersSelectElement)
ConversationsSelect(ConversationsSelectElement)
ChannelsSelect(ChannelsSelectElement)
TimePicker(TimePickerElement)
WorkflowButton(WorkflowButtonElement)
Unknown(Value)
A kind this crate does not know. Keeps the received JSON and writes it back unchanged.
Trait Implementations§
Source§impl Clone for ActionsElement
impl Clone for ActionsElement
Source§impl Debug for ActionsElement
impl Debug for ActionsElement
Source§impl<'de> Deserialize<'de> for ActionsElement
impl<'de> Deserialize<'de> for ActionsElement
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<ButtonElement> for ActionsElement
impl From<ButtonElement> for ActionsElement
Source§fn from(value: ButtonElement) -> Self
fn from(value: ButtonElement) -> Self
Converts to this type from the input type.
Source§impl From<ChannelsSelectElement> for ActionsElement
impl From<ChannelsSelectElement> for ActionsElement
Source§fn from(value: ChannelsSelectElement) -> Self
fn from(value: ChannelsSelectElement) -> Self
Converts to this type from the input type.
Source§impl From<CheckboxesElement> for ActionsElement
impl From<CheckboxesElement> for ActionsElement
Source§fn from(value: CheckboxesElement) -> Self
fn from(value: CheckboxesElement) -> Self
Converts to this type from the input type.
Source§impl From<ConversationsSelectElement> for ActionsElement
impl From<ConversationsSelectElement> for ActionsElement
Source§fn from(value: ConversationsSelectElement) -> Self
fn from(value: ConversationsSelectElement) -> Self
Converts to this type from the input type.
Source§impl From<DatePickerElement> for ActionsElement
impl From<DatePickerElement> for ActionsElement
Source§fn from(value: DatePickerElement) -> Self
fn from(value: DatePickerElement) -> Self
Converts to this type from the input type.
Source§impl From<DatetimePickerElement> for ActionsElement
impl From<DatetimePickerElement> for ActionsElement
Source§fn from(value: DatetimePickerElement) -> Self
fn from(value: DatetimePickerElement) -> Self
Converts to this type from the input type.
Source§impl From<ExternalSelectElement> for ActionsElement
impl From<ExternalSelectElement> for ActionsElement
Source§fn from(value: ExternalSelectElement) -> Self
fn from(value: ExternalSelectElement) -> Self
Converts to this type from the input type.
Source§impl From<MultiChannelsSelectElement> for ActionsElement
impl From<MultiChannelsSelectElement> for ActionsElement
Source§fn from(value: MultiChannelsSelectElement) -> Self
fn from(value: MultiChannelsSelectElement) -> Self
Converts to this type from the input type.
Source§impl From<MultiConversationsSelectElement> for ActionsElement
impl From<MultiConversationsSelectElement> for ActionsElement
Source§fn from(value: MultiConversationsSelectElement) -> Self
fn from(value: MultiConversationsSelectElement) -> Self
Converts to this type from the input type.
Source§impl From<MultiExternalSelectElement> for ActionsElement
impl From<MultiExternalSelectElement> for ActionsElement
Source§fn from(value: MultiExternalSelectElement) -> Self
fn from(value: MultiExternalSelectElement) -> Self
Converts to this type from the input type.
Source§impl From<MultiStaticSelectElement> for ActionsElement
impl From<MultiStaticSelectElement> for ActionsElement
Source§fn from(value: MultiStaticSelectElement) -> Self
fn from(value: MultiStaticSelectElement) -> Self
Converts to this type from the input type.
Source§impl From<MultiUsersSelectElement> for ActionsElement
impl From<MultiUsersSelectElement> for ActionsElement
Source§fn from(value: MultiUsersSelectElement) -> Self
fn from(value: MultiUsersSelectElement) -> Self
Converts to this type from the input type.
Source§impl From<OverflowElement> for ActionsElement
impl From<OverflowElement> for ActionsElement
Source§fn from(value: OverflowElement) -> Self
fn from(value: OverflowElement) -> Self
Converts to this type from the input type.
Source§impl From<RadioButtonsElement> for ActionsElement
impl From<RadioButtonsElement> for ActionsElement
Source§fn from(value: RadioButtonsElement) -> Self
fn from(value: RadioButtonsElement) -> Self
Converts to this type from the input type.
Source§impl From<RichTextInputElement> for ActionsElement
impl From<RichTextInputElement> for ActionsElement
Source§fn from(value: RichTextInputElement) -> Self
fn from(value: RichTextInputElement) -> Self
Converts to this type from the input type.
Source§impl From<StaticSelectElement> for ActionsElement
impl From<StaticSelectElement> for ActionsElement
Source§fn from(value: StaticSelectElement) -> Self
fn from(value: StaticSelectElement) -> Self
Converts to this type from the input type.
Source§impl From<TimePickerElement> for ActionsElement
impl From<TimePickerElement> for ActionsElement
Source§fn from(value: TimePickerElement) -> Self
fn from(value: TimePickerElement) -> Self
Converts to this type from the input type.
Source§impl From<UsersSelectElement> for ActionsElement
impl From<UsersSelectElement> for ActionsElement
Source§fn from(value: UsersSelectElement) -> Self
fn from(value: UsersSelectElement) -> Self
Converts to this type from the input type.
Source§impl From<WorkflowButtonElement> for ActionsElement
impl From<WorkflowButtonElement> for ActionsElement
Source§fn from(value: WorkflowButtonElement) -> Self
fn from(value: WorkflowButtonElement) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ActionsElement
impl PartialEq for ActionsElement
Source§impl Serialize for ActionsElement
impl Serialize for ActionsElement
impl StructuralPartialEq for ActionsElement
Auto Trait Implementations§
impl Freeze for ActionsElement
impl RefUnwindSafe for ActionsElement
impl Send for ActionsElement
impl Sync for ActionsElement
impl Unpin for ActionsElement
impl UnsafeUnpin for ActionsElement
impl UnwindSafe for ActionsElement
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
Mutably borrows from an owned value. Read more