pub struct SlackBlockFeedbackButtonsElement {
pub action_id: Option<SlackActionId>,
pub positive_button: SlackFeedbackButtonItem,
pub negative_button: SlackFeedbackButtonItem,
}Fields§
§action_id: Option<SlackActionId>Implementations§
Source§impl SlackBlockFeedbackButtonsElement
impl SlackBlockFeedbackButtonsElement
Sourcepub fn new(
positive_button: SlackFeedbackButtonItem,
negative_button: SlackFeedbackButtonItem,
) -> Self
pub fn new( positive_button: SlackFeedbackButtonItem, negative_button: SlackFeedbackButtonItem, ) -> Self
Creates a new SlackBlockFeedbackButtonsElement from its required fields. Option fields start as None, and fields with #[default] take their default.
Sourcepub fn action_id(&mut self, value: SlackActionId) -> &mut Self
pub fn action_id(&mut self, value: SlackActionId) -> &mut Self
Sets action_id to Some(value).
Sourcepub fn reset_action_id(&mut self) -> &mut Self
pub fn reset_action_id(&mut self) -> &mut Self
Sets action_id to None.
Sourcepub fn mopt_action_id(&mut self, value: Option<SlackActionId>) -> &mut Self
pub fn mopt_action_id(&mut self, value: Option<SlackActionId>) -> &mut Self
Sets action_id to the given Option.
Sourcepub fn with_action_id(self, value: SlackActionId) -> Self
pub fn with_action_id(self, value: SlackActionId) -> Self
Returns self with action_id set to Some(value).
Sourcepub fn without_action_id(self) -> Self
pub fn without_action_id(self) -> Self
Returns self with action_id set to None.
Sourcepub fn opt_action_id(self, value: Option<SlackActionId>) -> Self
pub fn opt_action_id(self, value: Option<SlackActionId>) -> Self
Returns self with action_id set to the given Option.
Sets positive_button to value.
Returns self with positive_button set to value.
Sets negative_button to value.
Returns self with negative_button set to value.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SlackBlockFeedbackButtonsElement
impl<'de> Deserialize<'de> for SlackBlockFeedbackButtonsElement
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<SlackBlockFeedbackButtonsElement> for SlackContextActionBlockElement
impl From<SlackBlockFeedbackButtonsElement> for SlackContextActionBlockElement
Source§fn from(element: SlackBlockFeedbackButtonsElement) -> Self
fn from(element: SlackBlockFeedbackButtonsElement) -> Self
Converts to this type from the input type.
Source§impl From<SlackBlockFeedbackButtonsElementInit> for SlackBlockFeedbackButtonsElement
impl From<SlackBlockFeedbackButtonsElementInit> for SlackBlockFeedbackButtonsElement
Source§fn from(value: SlackBlockFeedbackButtonsElementInit) -> Self
fn from(value: SlackBlockFeedbackButtonsElementInit) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for SlackBlockFeedbackButtonsElement
Auto Trait Implementations§
impl Freeze for SlackBlockFeedbackButtonsElement
impl RefUnwindSafe for SlackBlockFeedbackButtonsElement
impl Send for SlackBlockFeedbackButtonsElement
impl Sync for SlackBlockFeedbackButtonsElement
impl Unpin for SlackBlockFeedbackButtonsElement
impl UnsafeUnpin for SlackBlockFeedbackButtonsElement
impl UnwindSafe for SlackBlockFeedbackButtonsElement
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