pub struct FeedbackButtonsElement { /* private fields */ }Expand description
A pair of thumbs-up and thumbs-down feedback buttons.
Implementations§
Source§impl FeedbackButtonsElement
impl FeedbackButtonsElement
Sourcepub fn builder() -> FeedbackButtonsElementBuilder
pub fn builder() -> FeedbackButtonsElementBuilder
Starts a builder with the documented model defaults.
Sourcepub fn into_builder(self) -> FeedbackButtonsElementBuilder
pub fn into_builder(self) -> FeedbackButtonsElementBuilder
Moves every field into an editable builder, preserving explicit omissions.
Borrows or copies positive_button. Sets the button for positive feedback.
Borrows or copies negative_button. Sets the button for negative feedback.
Sourcepub fn action_id(&self) -> Option<&str>
pub fn action_id(&self) -> Option<&str>
Borrows or copies action_id. Sets the identifier Slack returns in interaction payloads when a user acts on this element. It must be unique among the elements of its block.
Sourcepub fn extensions(&self) -> &Map<String, Value>
pub fn extensions(&self) -> &Map<String, Value>
Borrows checked, unmodeled JSON extension fields.
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<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
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 From<FeedbackButtonsElement> for Element
impl From<FeedbackButtonsElement> for Element
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
Source§impl TryFrom<Value> for FeedbackButtonsElement
impl TryFrom<Value> for FeedbackButtonsElement
Source§type Error = ValidationError
type Error = ValidationError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Forget for FeedbackButtonsElement
impl Freeze for FeedbackButtonsElement
impl Move 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