Struct slack_hook::Action
source · 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: String
Action type, renamed to ‘type’
text: String
Text for action
name: String
Name 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 RefUnwindSafe for Action
impl Send for Action
impl Sync for Action
impl Unpin for Action
impl UnwindSafe for Action
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more