Struct slack_hook::HexColor [] [src]

pub struct HexColor(_);

A HexColor String can be one of:

  1. Strings: good, warning, danger
  2. Any valid hex color code: e.g. #b13d41 or #000.

hex color codes will be checked to ensure a valid hex number is provided

Trait Implementations

impl Debug for HexColor
[src]

Formats the value using the given formatter.

impl Default for HexColor
[src]

Returns the "default value" for a type. Read more

impl Display for HexColor
[src]

Formats the value using the given formatter. Read more

impl From<SlackColor> for HexColor
[src]

Performs the conversion.

impl<S> TryFrom<S> for HexColor where
    S: Into<String>, 
[src]

The type returned in the event of a conversion error.

Performs the conversion.

impl TryFrom<SlackColor> for HexColor
[src]

The type returned in the event of a conversion error.

Performs the conversion.