Enum actix_web::middleware::cors::AllOrSome
source · pub enum AllOrSome<T> {
All,
Some(T),
}
Expand description
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
All
Everything is allowed. Usually equivalent to the “*” value.
Some(T)
Only some of T
is allowed
Implementations
Trait Implementations
sourceimpl<T: PartialEq> PartialEq<AllOrSome<T>> for AllOrSome<T>
impl<T: PartialEq> PartialEq<AllOrSome<T>> for AllOrSome<T>
impl<T: Eq> Eq for AllOrSome<T>
impl<T> StructuralEq for AllOrSome<T>
impl<T> StructuralPartialEq for AllOrSome<T>
Auto Trait Implementations
impl<T> RefUnwindSafe for AllOrSome<T>where
T: RefUnwindSafe,
impl<T> Send for AllOrSome<T>where
T: Send,
impl<T> Sync for AllOrSome<T>where
T: Sync,
impl<T> Unpin for AllOrSome<T>where
T: Unpin,
impl<T> UnwindSafe for AllOrSome<T>where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.