pub struct SlackBlockIconButtonElement {
pub action_id: SlackActionId,
pub icon: String,
pub text: SlackBlockPlainTextOnly,
pub value: Option<String>,
pub confirm: Option<SlackBlockConfirmItem>,
pub accessibility_label: Option<SlackAccessibilityLabel>,
pub visible_to_user_ids: Option<Vec<SlackUserId>>,
}Fields§
§action_id: SlackActionId§icon: String§text: SlackBlockPlainTextOnly§value: Option<String>§confirm: Option<SlackBlockConfirmItem>§accessibility_label: Option<SlackAccessibilityLabel>§visible_to_user_ids: Option<Vec<SlackUserId>>Implementations§
Source§impl SlackBlockIconButtonElement
impl SlackBlockIconButtonElement
pub fn new( action_id: SlackActionId, icon: String, text: SlackBlockPlainTextOnly, ) -> Self
pub fn action_id(&mut self, value: SlackActionId) -> &mut Self
pub fn with_action_id(self, value: SlackActionId) -> Self
pub fn icon(&mut self, value: String) -> &mut Self
pub fn with_icon(self, value: String) -> Self
pub fn text(&mut self, value: SlackBlockPlainTextOnly) -> &mut Self
pub fn with_text(self, value: SlackBlockPlainTextOnly) -> Self
pub fn value(&mut self, value: String) -> &mut Self
pub fn reset_value(&mut self) -> &mut Self
pub fn mopt_value(&mut self, value: Option<String>) -> &mut Self
pub fn with_value(self, value: String) -> Self
pub fn without_value(self) -> Self
pub fn opt_value(self, value: Option<String>) -> Self
pub fn confirm(&mut self, value: SlackBlockConfirmItem) -> &mut Self
pub fn reset_confirm(&mut self) -> &mut Self
pub fn mopt_confirm( &mut self, value: Option<SlackBlockConfirmItem>, ) -> &mut Self
pub fn with_confirm(self, value: SlackBlockConfirmItem) -> Self
pub fn without_confirm(self) -> Self
pub fn opt_confirm(self, value: Option<SlackBlockConfirmItem>) -> Self
pub fn accessibility_label( &mut self, value: SlackAccessibilityLabel, ) -> &mut Self
pub fn reset_accessibility_label(&mut self) -> &mut Self
pub fn mopt_accessibility_label( &mut self, value: Option<SlackAccessibilityLabel>, ) -> &mut Self
pub fn with_accessibility_label(self, value: SlackAccessibilityLabel) -> Self
pub fn without_accessibility_label(self) -> Self
pub fn opt_accessibility_label( self, value: Option<SlackAccessibilityLabel>, ) -> Self
pub fn visible_to_user_ids(&mut self, value: Vec<SlackUserId>) -> &mut Self
pub fn reset_visible_to_user_ids(&mut self) -> &mut Self
pub fn mopt_visible_to_user_ids( &mut self, value: Option<Vec<SlackUserId>>, ) -> &mut Self
pub fn with_visible_to_user_ids(self, value: Vec<SlackUserId>) -> Self
pub fn without_visible_to_user_ids(self) -> Self
pub fn opt_visible_to_user_ids(self, value: Option<Vec<SlackUserId>>) -> Self
Trait Implementations§
Source§impl Clone for SlackBlockIconButtonElement
impl Clone for SlackBlockIconButtonElement
Source§fn clone(&self) -> SlackBlockIconButtonElement
fn clone(&self) -> SlackBlockIconButtonElement
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SlackBlockIconButtonElement
impl Debug for SlackBlockIconButtonElement
Source§impl<'de> Deserialize<'de> for SlackBlockIconButtonElement
impl<'de> Deserialize<'de> for SlackBlockIconButtonElement
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<SlackBlockIconButtonElement> for SlackContextActionBlockElement
impl From<SlackBlockIconButtonElement> for SlackContextActionBlockElement
Source§fn from(element: SlackBlockIconButtonElement) -> Self
fn from(element: SlackBlockIconButtonElement) -> Self
Converts to this type from the input type.
Source§impl From<SlackBlockIconButtonElementInit> for SlackBlockIconButtonElement
impl From<SlackBlockIconButtonElementInit> for SlackBlockIconButtonElement
Source§fn from(value: SlackBlockIconButtonElementInit) -> Self
fn from(value: SlackBlockIconButtonElementInit) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for SlackBlockIconButtonElement
Auto Trait Implementations§
impl Freeze for SlackBlockIconButtonElement
impl RefUnwindSafe for SlackBlockIconButtonElement
impl Send for SlackBlockIconButtonElement
impl Sync for SlackBlockIconButtonElement
impl Unpin for SlackBlockIconButtonElement
impl UnsafeUnpin for SlackBlockIconButtonElement
impl UnwindSafe for SlackBlockIconButtonElement
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