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]
impl From<SlackColor> for HexColor[src]
fn from(color: SlackColor) -> HexColor
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>
Performs the conversion.