Struct slack_hook::HexColor [] [src]

pub struct HexColor(_);

The HexColor string can be one of:

  1. good, warning, danger
  2. The built-in enums: SlackColor::Good, etc.
  3. Any valid hex color code: #b13d41 hex color codes will be checked to ensure a valid hex number is provided

Trait Implementations

impl Debug for HexColor
[src]

fn fmt(&self, f: &mut Formatter) -> Result

Formats the value using the given formatter.

impl ToJson for HexColor
[src]

fn to_json(&self) -> Json

Converts the value of self to an instance of JSON

impl Encodable for HexColor
[src]

fn encode<S: Encoder>(&self, encoder: &mut S) -> Result<(), S::Error>