pub enum AllowedOrigins {
Any,
Exact(Vec<Uri>),
}Expand description
Allowed CORS origins.
Variants§
Any
Any origin is allowed. This cannot be combined with credentials.
Exact(Vec<Uri>)
Only the exact normalized origins are allowed.
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 moreSource§impl Debug for AllowedOrigins
impl Debug for AllowedOrigins
impl Eq for AllowedOrigins
Source§impl PartialEq for AllowedOrigins
impl PartialEq for AllowedOrigins
impl StructuralPartialEq for AllowedOrigins
Auto 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