Struct sfr_types::ConfirmObect
source · pub struct ConfirmObect {
pub title: PlainTextObject,
pub text: TextObject,
pub confirm: PlainTextObject,
pub deny: PlainTextObject,
pub style: ButtonStyle,
}Expand description
The type that represents a confirmation dialog object.
Defines a dialog that adds a confirmation step to interactive elements.
https://api.slack.com/reference/block-kit/composition-objects#confirm
Fields§
§title: PlainTextObjectA plain_text text object that defines the dialog’s title.
text: TextObjectA plain_text text object that defines the explanatory text that appears in the confirm dialog.
confirm: PlainTextObjectA plain_text text object to define the text of the button that confirms the action.
deny: PlainTextObjectA plain_text text object to define the text of the button that cancels the action.
style: ButtonStyleDefines the color scheme applied to the confirm button.
Trait Implementations§
source§impl Clone for ConfirmObect
impl Clone for ConfirmObect
source§fn clone(&self) -> ConfirmObect
fn clone(&self) -> ConfirmObect
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for ConfirmObect
impl Debug for ConfirmObect
Auto Trait Implementations§
impl Freeze for ConfirmObect
impl RefUnwindSafe for ConfirmObect
impl Send for ConfirmObect
impl Sync for ConfirmObect
impl Unpin for ConfirmObect
impl UnwindSafe for ConfirmObect
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)