pub enum AllowedOrigins {
Wildcard,
Exact(BTreeSet<String>),
}Expand description
Origin-matching strategy.
Variants§
Wildcard
Any origin is permitted. Combined with credentials, the policy degrades to echo-concrete-origin mode (see module docs).
Exact(BTreeSet<String>)
Only origins present in the set are permitted. Comparison is case-sensitive (RFC 6454 origins are ASCII).
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 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for AllowedOrigins
impl RefUnwindSafe for AllowedOrigins
impl Send for AllowedOrigins
impl Sync for AllowedOrigins
impl Unpin for AllowedOrigins
impl UnsafeUnpin 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