[][src]Enum gitlab::api::common::YesNo

pub enum YesNo {
    Yes,
    No,
}

A yes or no.

Some endpoints use this terminology.

Variants

Yes

A yes response.

No

A no response.

Implementations

impl YesNo[src]

pub fn as_str(self) -> &'static str[src]

The string representation of the option.

Trait Implementations

impl Clone for YesNo[src]

impl Copy for YesNo[src]

impl Debug for YesNo[src]

impl Eq for YesNo[src]

impl From<bool> for YesNo[src]

impl ParamValue<'static> for YesNo[src]

impl PartialEq<YesNo> for YesNo[src]

impl StructuralEq for YesNo[src]

impl StructuralPartialEq for YesNo[src]

Auto Trait Implementations

impl RefUnwindSafe for YesNo

impl Send for YesNo

impl Sync for YesNo

impl Unpin for YesNo

impl UnwindSafe for YesNo

Blanket Implementations

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

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

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

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

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

impl<T, U> Into<U> for T where
    U: From<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.