pub enum AllowedOrigins {
Any {
allow_null: bool,
},
Origins(BTreeSet<HeaderValue>),
}Expand description
Specifies which origins are allowed to access this resource
Variants§
Trait Implementations§
Source§impl Clone for AllowedOrigins
impl Clone for AllowedOrigins
Source§fn clone(&self) -> AllowedOrigins
fn clone(&self) -> AllowedOrigins
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AllowedOrigins
impl Debug for AllowedOrigins
Source§impl Default for AllowedOrigins
impl Default for AllowedOrigins
Source§impl<A> FromIterator<A> for AllowedOriginswhere
A: Into<HeaderValue>,
impl<A> FromIterator<A> for AllowedOriginswhere
A: Into<HeaderValue>,
Source§fn from_iter<I>(iter: I) -> Selfwhere
I: IntoIterator<Item = A>,
fn from_iter<I>(iter: I) -> Selfwhere
I: IntoIterator<Item = A>,
Creates a value from an iterator. Read more
Auto Trait Implementations§
impl Freeze for AllowedOrigins
impl RefUnwindSafe for AllowedOrigins
impl Send for AllowedOrigins
impl Sync for AllowedOrigins
impl Unpin for AllowedOrigins
impl UnwindSafe for AllowedOrigins
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more