pub struct MultiConversationsSelectElement {
pub action_id: Option<String>,
pub initial_conversations: Vec<String>,
pub default_to_current_conversation: Option<bool>,
pub confirm: Option<ConfirmationDialog>,
pub max_selected_items: Option<u32>,
pub filter: Option<ConversationFilter>,
pub focus_on_load: Option<bool>,
pub placeholder: Option<TextObject>,
/* private fields */
}Expand description
A multi-select menu of conversations. https://docs.slack.dev/reference/block-kit/block-elements/multi-select-menu-element
Fields§
§action_id: Option<String>§initial_conversations: Vec<String>§default_to_current_conversation: Option<bool>§confirm: Option<ConfirmationDialog>§max_selected_items: Option<u32>§filter: Option<ConversationFilter>§focus_on_load: Option<bool>§placeholder: Option<TextObject>Implementations§
Source§impl MultiConversationsSelectElement
impl MultiConversationsSelectElement
pub fn new() -> Self
pub fn action_id(self, action_id: impl Into<String>) -> Self
pub fn initial_conversations(self, initial_conversations: Vec<String>) -> Self
pub fn default_to_current_conversation( self, default_to_current_conversation: bool, ) -> Self
pub fn confirm(self, confirm: ConfirmationDialog) -> Self
pub fn max_selected_items(self, max_selected_items: u32) -> Self
pub fn filter(self, filter: ConversationFilter) -> Self
pub fn focus_on_load(self, focus_on_load: bool) -> Self
pub fn placeholder(self, placeholder: impl Into<TextObject>) -> Self
Trait Implementations§
Source§impl<'de> Deserialize<'de> for MultiConversationsSelectElement
impl<'de> Deserialize<'de> for MultiConversationsSelectElement
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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<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<MultiConversationsSelectElement> for InputElement
impl From<MultiConversationsSelectElement> for InputElement
Source§fn from(value: MultiConversationsSelectElement) -> Self
fn from(value: MultiConversationsSelectElement) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for MultiConversationsSelectElement
Auto Trait Implementations§
impl Freeze for MultiConversationsSelectElement
impl RefUnwindSafe for MultiConversationsSelectElement
impl Send for MultiConversationsSelectElement
impl Sync for MultiConversationsSelectElement
impl Unpin for MultiConversationsSelectElement
impl UnsafeUnpin for MultiConversationsSelectElement
impl UnwindSafe for MultiConversationsSelectElement
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