[][src]Enum tbot::types::parameters::Requirement

#[must_use]
pub enum Requirement {
    Required,
    NotRequired,
}

Chooses if a piece of data is required.

Variants

Required

The data is required.

NotRequired

The data is not required.

Methods

impl Requirement[src]

pub fn is_required(&self) -> bool[src]

Returns true if self is of variant Required.

pub fn is_not_required(&self) -> bool[src]

Returns true if self is of variant NotRequired.

Trait Implementations

impl Clone for Requirement[src]

impl Copy for Requirement[src]

impl Debug for Requirement[src]

impl Eq for Requirement[src]

impl Hash for Requirement[src]

impl PartialEq<Requirement> for Requirement[src]

impl StructuralEq for Requirement[src]

impl StructuralPartialEq for Requirement[src]

Auto Trait Implementations

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.