pub struct ConversationsSelectElement {
pub action_id: Option<String>,
pub initial_conversation: Option<String>,
pub default_to_current_conversation: Option<bool>,
pub confirm: Option<ConfirmationDialog>,
pub response_url_enabled: Option<bool>,
pub filter: Option<ConversationFilter>,
pub focus_on_load: Option<bool>,
pub placeholder: Option<TextObject>,
/* private fields */
}Expand description
A select menu of conversations. https://docs.slack.dev/reference/block-kit/block-elements/select-menu-element
Fields§
§action_id: Option<String>§initial_conversation: Option<String>§default_to_current_conversation: Option<bool>§confirm: Option<ConfirmationDialog>§response_url_enabled: Option<bool>§filter: Option<ConversationFilter>§focus_on_load: Option<bool>§placeholder: Option<TextObject>Implementations§
Source§impl ConversationsSelectElement
impl ConversationsSelectElement
pub fn new() -> Self
pub fn action_id(self, action_id: impl Into<String>) -> Self
pub fn initial_conversation( self, initial_conversation: impl Into<String>, ) -> Self
pub fn default_to_current_conversation( self, default_to_current_conversation: bool, ) -> Self
pub fn confirm(self, confirm: ConfirmationDialog) -> Self
pub fn response_url_enabled(self, response_url_enabled: bool) -> 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 Clone for ConversationsSelectElement
impl Clone for ConversationsSelectElement
Source§impl Debug for ConversationsSelectElement
impl Debug for ConversationsSelectElement
Source§impl Default for ConversationsSelectElement
impl Default for ConversationsSelectElement
Source§impl<'de> Deserialize<'de> for ConversationsSelectElement
impl<'de> Deserialize<'de> for ConversationsSelectElement
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<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<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<ConversationsSelectElement> for InputElement
impl From<ConversationsSelectElement> for InputElement
Source§fn from(value: ConversationsSelectElement) -> Self
fn from(value: ConversationsSelectElement) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for ConversationsSelectElement
Auto Trait Implementations§
impl Freeze for ConversationsSelectElement
impl RefUnwindSafe for ConversationsSelectElement
impl Send for ConversationsSelectElement
impl Sync for ConversationsSelectElement
impl Unpin for ConversationsSelectElement
impl UnsafeUnpin for ConversationsSelectElement
impl UnwindSafe for ConversationsSelectElement
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