pub struct SlackBlockFeedbackButtonsElement {
pub action_id: SlackActionId,
pub positive: SlackFeedbackButtonItem,
pub negative: SlackFeedbackButtonItem,
}Fields§
§action_id: SlackActionId§positive: SlackFeedbackButtonItem§negative: SlackFeedbackButtonItemImplementations§
Source§impl SlackBlockFeedbackButtonsElement
impl SlackBlockFeedbackButtonsElement
Sourcepub fn new(
action_id: SlackActionId,
positive: SlackFeedbackButtonItem,
negative: SlackFeedbackButtonItem,
) -> Self
pub fn new( action_id: SlackActionId, positive: SlackFeedbackButtonItem, negative: 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 value.
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 value.
Sourcepub fn positive(&mut self, value: SlackFeedbackButtonItem) -> &mut Self
pub fn positive(&mut self, value: SlackFeedbackButtonItem) -> &mut Self
Sets positive to value.
Sourcepub fn with_positive(self, value: SlackFeedbackButtonItem) -> Self
pub fn with_positive(self, value: SlackFeedbackButtonItem) -> Self
Returns self with positive set to value.
Sourcepub fn negative(&mut self, value: SlackFeedbackButtonItem) -> &mut Self
pub fn negative(&mut self, value: SlackFeedbackButtonItem) -> &mut Self
Sets negative to value.
Sourcepub fn with_negative(self, value: SlackFeedbackButtonItem) -> Self
pub fn with_negative(self, value: SlackFeedbackButtonItem) -> Self
Returns self with negative 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