pub enum CorsPolicyKind {
DenyAll,
SameOrigin,
AllowList,
AllowAll,
}Expand description
CORS policy labels.
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for CorsPolicyKind
impl Clone for CorsPolicyKind
Source§fn clone(&self) -> CorsPolicyKind
fn clone(&self) -> CorsPolicyKind
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 CorsPolicyKind
impl Debug for CorsPolicyKind
Source§impl Display for CorsPolicyKind
impl Display for CorsPolicyKind
Source§impl FromStr for CorsPolicyKind
impl FromStr for CorsPolicyKind
Source§impl Hash for CorsPolicyKind
impl Hash for CorsPolicyKind
Source§impl Ord for CorsPolicyKind
impl Ord for CorsPolicyKind
Source§fn cmp(&self, other: &CorsPolicyKind) -> Ordering
fn cmp(&self, other: &CorsPolicyKind) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for CorsPolicyKind
impl PartialEq for CorsPolicyKind
Source§fn eq(&self, other: &CorsPolicyKind) -> bool
fn eq(&self, other: &CorsPolicyKind) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for CorsPolicyKind
impl PartialOrd for CorsPolicyKind
impl Copy for CorsPolicyKind
impl Eq for CorsPolicyKind
impl StructuralPartialEq for CorsPolicyKind
Auto Trait Implementations§
impl Freeze for CorsPolicyKind
impl RefUnwindSafe for CorsPolicyKind
impl Send for CorsPolicyKind
impl Sync for CorsPolicyKind
impl Unpin for CorsPolicyKind
impl UnsafeUnpin for CorsPolicyKind
impl UnwindSafe for CorsPolicyKind
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