Struct slack_hook::HexColor
[−]
[src]
pub struct HexColor(_);
A HexColor String can be one of:
Strings:good,warning,danger- Any valid hex color code: e.g.
#b13d41or#000.
hex color codes will be checked to ensure a valid hex number is provided
Trait Implementations
impl Debug for HexColor[src]
impl Default for HexColor[src]
impl Display for HexColor[src]
fn fmt(&self, f: &mut Formatter) -> Result[src]
Formats the value using the given formatter. Read more
impl From<SlackColor> for HexColor[src]
fn from(color: SlackColor) -> HexColor[src]
Performs the conversion.
impl<S> TryFrom<S> for HexColor where
S: Into<String>, [src]
S: Into<String>,
type Err = Error
The type returned in the event of a conversion error.
fn try_from(s: S) -> Result<Self, Self::Err>[src]
Performs the conversion.