[][src]Struct gitlab::types::LabelColor

pub struct LabelColor(_);

Type-safe label color.

Methods

impl LabelColor[src]

pub fn from_rgb(r: u8, g: u8, b: u8) -> LabelColor[src]

Creates a LabelColor from RGB values

pub fn from_str(stdcolor: &str) -> LabelColor[src]

Creates a LabelColor from standard HTML values

pub fn value(self) -> String[src]

Get the value from a LabelColor

Trait Implementations

impl Clone for LabelColor[src]

impl Eq for LabelColor[src]

impl PartialEq<LabelColor> for LabelColor[src]

impl Debug for LabelColor[src]

impl StructuralPartialEq for LabelColor[src]

impl StructuralEq for LabelColor[src]

impl Serialize for LabelColor[src]

impl<'de> Deserialize<'de> for LabelColor[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Err = <U as TryFrom<T>>::Err