pub struct Action {
pub action_type: String,
pub text: String,
pub name: String,
pub style: Option<String>,
pub value: Option<String>,
}Expand description
Actions are defined as an array, and values contained within it will be displayed with the message.
Fields§
§action_type: StringAction type, renamed to ‘type’
text: StringText for action
name: StringName of action
style: Option<String>Action style, ie: primary, danger, etc
value: Option<String>Value of action
Implementations§
Trait Implementations§
impl StructuralPartialEq for Action
Auto Trait Implementations§
impl Freeze for Action
impl RefUnwindSafe for Action
impl Send for Action
impl Sync for Action
impl Unpin for Action
impl UnwindSafe for Action
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