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]

[src]

Returns whether this is an All variant

[src]

Returns whether this is a Some variant

[src]

Returns &T

Trait Implementations

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

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

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

[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]

[src]

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

[src]

This method tests for !=.

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

[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