Struct slack_hook::HexColor [−][src]
pub struct HexColor(_);
A HexColor
String
can be one of:
String
s:good
,warning
,danger
- 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]
impl Debug for HexColor
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for HexColor
[src]
impl Clone for HexColor
fn clone(&self) -> HexColor
[src]
fn clone(&self) -> HexColor
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl PartialEq for HexColor
[src]
impl PartialEq for HexColor
fn eq(&self, other: &HexColor) -> bool
[src]
fn eq(&self, other: &HexColor) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &HexColor) -> bool
[src]
fn ne(&self, other: &HexColor) -> bool
This method tests for !=
.
impl Default for HexColor
[src]
impl Default for HexColor
impl Display for HexColor
[src]
impl Display for HexColor
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl From<SlackColor> for HexColor
[src]
impl From<SlackColor> for HexColor
fn from(color: SlackColor) -> HexColor
[src]
fn from(color: SlackColor) -> HexColor
Performs the conversion.
impl<S> TryFrom<S> for HexColor where
S: Into<String>,
[src]
impl<S> TryFrom<S> for HexColor where
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]
fn try_from(s: S) -> Result<Self, Self::Err>
Performs the conversion.
impl TryFrom<SlackColor> for HexColor
[src]
impl TryFrom<SlackColor> for HexColor