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. Read more

impl Clone for HexColor
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for HexColor
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

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.

Auto Trait Implementations

impl Send for HexColor

impl Sync for HexColor