Struct slack_hook3::HexColor [−][src]
pub struct HexColor(_);
Expand description
A HexColor
String
can be one of:
String
s:good
,warning
,danger
- Any valid hex color code: e.g.
#b13d41
or#000
.
Implementations
A checked constructor for HexColor
Note that this used to be an impl<S> TryFrom<S> for HexColor
,
but due to a conflicting blanket implementation, this has been changed.
https://github.com/rust-lang/rust/issues/50133
Trait Implementations
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for HexColor
impl UnwindSafe for HexColor
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more