Enum slack_hook::SlackColor
source · pub enum SlackColor {
Good,
Warning,
Danger,
}
Expand description
Default slack colors built-in to the API See: https://api.slack.com/docs/attachments
Variants
Trait Implementations
sourceimpl AsRef<str> for SlackColor
impl AsRef<str> for SlackColor
sourceimpl Clone for SlackColor
impl Clone for SlackColor
sourcefn clone(&self) -> SlackColor
fn clone(&self) -> SlackColor
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for SlackColor
impl Debug for SlackColor
sourceimpl Display for SlackColor
impl Display for SlackColor
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 PartialEq<SlackColor> for SlackColor
impl PartialEq<SlackColor> for SlackColor
sourcefn eq(&self, other: &SlackColor) -> bool
fn eq(&self, other: &SlackColor) -> bool
sourceimpl TryFrom<SlackColor> for HexColor
impl TryFrom<SlackColor> for HexColor
impl Copy for SlackColor
impl Eq for SlackColor
impl StructuralEq for SlackColor
impl StructuralPartialEq for SlackColor
Auto Trait Implementations
impl RefUnwindSafe for SlackColor
impl Send for SlackColor
impl Sync for SlackColor
impl Unpin for SlackColor
impl UnwindSafe for SlackColor
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
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.