pub enum ButtonType {
Primary,
Danger,
Warning,
Info,
Success,
}Expand description
Button type variants for email buttons.
Controls the background colour of the rendered HTML button.
In template Markdown, use [button:TYPE|Label](url).
Variants§
Primary
Blue (or brand_color variable when supplied). Template syntax: [button|Label](url) or [button:primary|Label](url).
Danger
Red. Template syntax: [button:danger|Label](url).
Warning
Amber. Template syntax: [button:warning|Label](url).
Info
Cyan. Template syntax: [button:info|Label](url).
Success
Green. Template syntax: [button:success|Label](url).
Implementations§
Trait Implementations§
Source§impl Clone for ButtonType
impl Clone for ButtonType
Source§fn clone(&self) -> ButtonType
fn clone(&self) -> ButtonType
Returns a duplicate 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 ButtonType
impl Debug for ButtonType
Source§impl PartialEq for ButtonType
impl PartialEq for ButtonType
impl Copy for ButtonType
impl StructuralPartialEq for ButtonType
Auto Trait Implementations§
impl Freeze for ButtonType
impl RefUnwindSafe for ButtonType
impl Send for ButtonType
impl Sync for ButtonType
impl Unpin for ButtonType
impl UnsafeUnpin for ButtonType
impl UnwindSafe for ButtonType
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