Struct slack_hook::HexColor
source · 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
.
hex color codes will be checked to ensure a valid hex number is provided
Trait Implementations
sourceimpl From<SlackColor> for HexColor
impl From<SlackColor> for HexColor
sourcefn from(color: SlackColor) -> HexColor
fn from(color: SlackColor) -> HexColor
Converts to this type from the input type.
sourceimpl TryFrom<SlackColor> for HexColor
impl TryFrom<SlackColor> for HexColor
impl StructuralPartialEq for HexColor
Auto Trait Implementations
impl RefUnwindSafe for HexColor
impl Send for HexColor
impl Sync for HexColor
impl Unpin for HexColor
impl UnwindSafe for HexColor
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more