pub struct FeedbackButtonsElement {
pub positive_button: FeedbackButton,
pub negative_button: FeedbackButton,
pub action_id: Option<String>,
/* private fields */
}Expand description
Positive and negative feedback buttons. https://docs.slack.dev/reference/block-kit/block-elements/feedback-buttons-element
Fields§
§action_id: Option<String>Implementations§
Source§impl FeedbackButtonsElement
impl FeedbackButtonsElement
pub fn new( positive_button: FeedbackButton, negative_button: FeedbackButton, ) -> Self
pub fn action_id(self, action_id: impl Into<String>) -> Self
Trait Implementations§
Source§impl Clone for FeedbackButtonsElement
impl Clone for FeedbackButtonsElement
Source§impl Debug for FeedbackButtonsElement
impl Debug for FeedbackButtonsElement
Source§impl<'de> Deserialize<'de> for FeedbackButtonsElement
impl<'de> Deserialize<'de> for FeedbackButtonsElement
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<FeedbackButtonsElement> for ContextActionsElement
impl From<FeedbackButtonsElement> for ContextActionsElement
Source§fn from(value: FeedbackButtonsElement) -> Self
fn from(value: FeedbackButtonsElement) -> Self
Converts to this type from the input type.
Source§impl PartialEq for FeedbackButtonsElement
impl PartialEq for FeedbackButtonsElement
Source§impl Serialize for FeedbackButtonsElement
impl Serialize for FeedbackButtonsElement
impl StructuralPartialEq for FeedbackButtonsElement
Auto Trait Implementations§
impl Freeze for FeedbackButtonsElement
impl RefUnwindSafe for FeedbackButtonsElement
impl Send for FeedbackButtonsElement
impl Sync for FeedbackButtonsElement
impl Unpin for FeedbackButtonsElement
impl UnsafeUnpin for FeedbackButtonsElement
impl UnwindSafe for FeedbackButtonsElement
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