pub struct FeedbackButtonsElementBuilder { /* private fields */ }Expand description
Consuming builder for FeedbackButtonsElement. Validation runs in Self::build.
Implementations§
Source§impl FeedbackButtonsElementBuilder
impl FeedbackButtonsElementBuilder
Sets the button for positive feedback.
Sets the button for negative feedback.
Sourcepub fn action_id(self, value: impl Into<String>) -> Self
pub fn action_id(self, value: impl Into<String>) -> Self
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 clear_action_id(self) -> Self
pub fn clear_action_id(self) -> Self
Omits action_id, including any model default.
Sourcepub fn extension(self, key: impl Into<String>, value: impl Into<Value>) -> Self
pub fn extension(self, key: impl Into<String>, value: impl Into<Value>) -> Self
Adds or replaces an unmodeled extension; reserved names fail at build time.
Sourcepub fn build(self) -> Result<FeedbackButtonsElement, ValidationError>
pub fn build(self) -> Result<FeedbackButtonsElement, ValidationError>
Validates all fields and their receiving context.
§Errors
Returns a ValidationError for missing fields, invalid values, reserved
extension names, or unsupported field combinations and child contexts.
Trait Implementations§
Auto Trait Implementations§
impl Forget for FeedbackButtonsElementBuilder
impl Freeze for FeedbackButtonsElementBuilder
impl Move for FeedbackButtonsElementBuilder
impl RefUnwindSafe for FeedbackButtonsElementBuilder
impl Send for FeedbackButtonsElementBuilder
impl Sync for FeedbackButtonsElementBuilder
impl Unpin for FeedbackButtonsElementBuilder
impl UnsafeUnpin for FeedbackButtonsElementBuilder
impl UnwindSafe for FeedbackButtonsElementBuilder
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