Enum actix_web::middleware::cors::AllOrSome[][src]

pub enum AllOrSome<T> {
    All,
    Some(T),
}

An enum signifying that some of type T is allowed, or All (everything is allowed).

Default is implemented for this enum and is All.

Variants

Everything is allowed. Usually equivalent to the "*" value.

Only some of T is allowed

Methods

impl<T> AllOrSome<T>
[src]

Returns whether this is an All variant

Returns whether this is a Some variant

Returns &T

Trait Implementations

impl<T: Clone> Clone for AllOrSome<T>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<T: Debug> Debug for AllOrSome<T>
[src]

Formats the value using the given formatter. Read more

impl<T: Eq> Eq for AllOrSome<T>
[src]

impl<T: PartialEq> PartialEq for AllOrSome<T>
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<T> Default for AllOrSome<T>
[src]

Returns the "default value" for a type. Read more

Auto Trait Implementations

impl<T> Send for AllOrSome<T> where
    T: Send

impl<T> Sync for AllOrSome<T> where
    T: Sync