Enum slack_hook::SlackColor [−][src]
pub enum SlackColor { Good, Warning, Danger, }
Default slack colors built-in to the API See: https://api.slack.com/docs/attachments
Variants
Good
green
Warning
orange
Danger
red
Trait Implementations
impl Copy for SlackColor
[src]
impl Copy for SlackColor
impl Clone for SlackColor
[src]
impl Clone for SlackColor
fn clone(&self) -> SlackColor
[src]
fn clone(&self) -> SlackColor
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for SlackColor
[src]
impl Debug for SlackColor
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for SlackColor
[src]
impl PartialEq for SlackColor
fn eq(&self, other: &SlackColor) -> bool
[src]
fn eq(&self, other: &SlackColor) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]This method tests for !=
.
impl Eq for SlackColor
[src]
impl Eq for SlackColor
impl Display for SlackColor
[src]
impl Display for SlackColor
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl AsRef<str> for SlackColor
[src]
impl AsRef<str> for SlackColor
impl From<SlackColor> for HexColor
[src]
impl From<SlackColor> for HexColor
fn from(color: SlackColor) -> HexColor
[src]
fn from(color: SlackColor) -> HexColor
Performs the conversion.
impl TryFrom<SlackColor> for HexColor
[src]
impl TryFrom<SlackColor> for HexColor
Auto Trait Implementations
impl Send for SlackColor
impl Send for SlackColor
impl Sync for SlackColor
impl Sync for SlackColor