pub enum SectionAccessory {
Show 19 variants
Button(ButtonElement),
Checkboxes(CheckboxesElement),
DatePicker(DatePickerElement),
Image(ImageElement),
MultiStaticSelect(MultiStaticSelectElement),
MultiExternalSelect(MultiExternalSelectElement),
MultiUsersSelect(MultiUsersSelectElement),
MultiConversationsSelect(MultiConversationsSelectElement),
MultiChannelsSelect(MultiChannelsSelectElement),
Overflow(OverflowElement),
RadioButtons(RadioButtonsElement),
StaticSelect(StaticSelectElement),
ExternalSelect(ExternalSelectElement),
UsersSelect(UsersSelectElement),
ConversationsSelect(ConversationsSelectElement),
ChannelsSelect(ChannelsSelectElement),
TimePicker(TimePickerElement),
WorkflowButton(WorkflowButtonElement),
Unknown(Value),
}Expand description
An element allowed as the accessory of a section block. https://docs.slack.dev/reference/block-kit/blocks/section-block
Variants§
Button(ButtonElement)
Checkboxes(CheckboxesElement)
DatePicker(DatePickerElement)
Image(ImageElement)
MultiStaticSelect(MultiStaticSelectElement)
MultiExternalSelect(MultiExternalSelectElement)
MultiUsersSelect(MultiUsersSelectElement)
MultiConversationsSelect(MultiConversationsSelectElement)
MultiChannelsSelect(MultiChannelsSelectElement)
Overflow(OverflowElement)
RadioButtons(RadioButtonsElement)
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 SectionAccessory
impl Clone for SectionAccessory
Source§impl Debug for SectionAccessory
impl Debug for SectionAccessory
Source§impl<'de> Deserialize<'de> for SectionAccessory
impl<'de> Deserialize<'de> for SectionAccessory
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 SectionAccessory
impl From<ButtonElement> for SectionAccessory
Source§fn from(value: ButtonElement) -> Self
fn from(value: ButtonElement) -> Self
Converts to this type from the input type.
Source§impl From<ChannelsSelectElement> for SectionAccessory
impl From<ChannelsSelectElement> for SectionAccessory
Source§fn from(value: ChannelsSelectElement) -> Self
fn from(value: ChannelsSelectElement) -> Self
Converts to this type from the input type.
Source§impl From<CheckboxesElement> for SectionAccessory
impl From<CheckboxesElement> for SectionAccessory
Source§fn from(value: CheckboxesElement) -> Self
fn from(value: CheckboxesElement) -> Self
Converts to this type from the input type.
Source§impl From<ConversationsSelectElement> for SectionAccessory
impl From<ConversationsSelectElement> for SectionAccessory
Source§fn from(value: ConversationsSelectElement) -> Self
fn from(value: ConversationsSelectElement) -> Self
Converts to this type from the input type.
Source§impl From<DatePickerElement> for SectionAccessory
impl From<DatePickerElement> for SectionAccessory
Source§fn from(value: DatePickerElement) -> Self
fn from(value: DatePickerElement) -> Self
Converts to this type from the input type.
Source§impl From<ExternalSelectElement> for SectionAccessory
impl From<ExternalSelectElement> for SectionAccessory
Source§fn from(value: ExternalSelectElement) -> Self
fn from(value: ExternalSelectElement) -> Self
Converts to this type from the input type.
Source§impl From<ImageElement> for SectionAccessory
impl From<ImageElement> for SectionAccessory
Source§fn from(value: ImageElement) -> Self
fn from(value: ImageElement) -> Self
Converts to this type from the input type.
Source§impl From<MultiChannelsSelectElement> for SectionAccessory
impl From<MultiChannelsSelectElement> for SectionAccessory
Source§fn from(value: MultiChannelsSelectElement) -> Self
fn from(value: MultiChannelsSelectElement) -> Self
Converts to this type from the input type.
Source§impl From<MultiConversationsSelectElement> for SectionAccessory
impl From<MultiConversationsSelectElement> for SectionAccessory
Source§fn from(value: MultiConversationsSelectElement) -> Self
fn from(value: MultiConversationsSelectElement) -> Self
Converts to this type from the input type.
Source§impl From<MultiExternalSelectElement> for SectionAccessory
impl From<MultiExternalSelectElement> for SectionAccessory
Source§fn from(value: MultiExternalSelectElement) -> Self
fn from(value: MultiExternalSelectElement) -> Self
Converts to this type from the input type.
Source§impl From<MultiStaticSelectElement> for SectionAccessory
impl From<MultiStaticSelectElement> for SectionAccessory
Source§fn from(value: MultiStaticSelectElement) -> Self
fn from(value: MultiStaticSelectElement) -> Self
Converts to this type from the input type.
Source§impl From<MultiUsersSelectElement> for SectionAccessory
impl From<MultiUsersSelectElement> for SectionAccessory
Source§fn from(value: MultiUsersSelectElement) -> Self
fn from(value: MultiUsersSelectElement) -> Self
Converts to this type from the input type.
Source§impl From<OverflowElement> for SectionAccessory
impl From<OverflowElement> for SectionAccessory
Source§fn from(value: OverflowElement) -> Self
fn from(value: OverflowElement) -> Self
Converts to this type from the input type.
Source§impl From<RadioButtonsElement> for SectionAccessory
impl From<RadioButtonsElement> for SectionAccessory
Source§fn from(value: RadioButtonsElement) -> Self
fn from(value: RadioButtonsElement) -> Self
Converts to this type from the input type.
Source§impl From<StaticSelectElement> for SectionAccessory
impl From<StaticSelectElement> for SectionAccessory
Source§fn from(value: StaticSelectElement) -> Self
fn from(value: StaticSelectElement) -> Self
Converts to this type from the input type.
Source§impl From<TimePickerElement> for SectionAccessory
impl From<TimePickerElement> for SectionAccessory
Source§fn from(value: TimePickerElement) -> Self
fn from(value: TimePickerElement) -> Self
Converts to this type from the input type.
Source§impl From<UsersSelectElement> for SectionAccessory
impl From<UsersSelectElement> for SectionAccessory
Source§fn from(value: UsersSelectElement) -> Self
fn from(value: UsersSelectElement) -> Self
Converts to this type from the input type.
Source§impl From<WorkflowButtonElement> for SectionAccessory
impl From<WorkflowButtonElement> for SectionAccessory
Source§fn from(value: WorkflowButtonElement) -> Self
fn from(value: WorkflowButtonElement) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SectionAccessory
impl PartialEq for SectionAccessory
Source§impl Serialize for SectionAccessory
impl Serialize for SectionAccessory
impl StructuralPartialEq for SectionAccessory
Auto Trait Implementations§
impl Freeze for SectionAccessory
impl RefUnwindSafe for SectionAccessory
impl Send for SectionAccessory
impl Sync for SectionAccessory
impl Unpin for SectionAccessory
impl UnsafeUnpin for SectionAccessory
impl UnwindSafe for SectionAccessory
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