pub enum DisallowedOriginMode {
Omit,
Reject,
}Expand description
Behavior when a CORS preflight origin is not in the allow list.
use praxis_filter::DisallowedOriginMode;
let mode: DisallowedOriginMode = serde_yaml::from_str("omit").unwrap();
assert_eq!(mode, DisallowedOriginMode::Omit);
let mode: DisallowedOriginMode = serde_yaml::from_str("reject").unwrap();
assert_eq!(mode, DisallowedOriginMode::Reject);Variants§
Trait Implementations§
Source§impl Debug for DisallowedOriginMode
impl Debug for DisallowedOriginMode
Source§impl Default for DisallowedOriginMode
impl Default for DisallowedOriginMode
Source§fn default() -> DisallowedOriginMode
fn default() -> DisallowedOriginMode
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DisallowedOriginMode
impl<'de> Deserialize<'de> for DisallowedOriginMode
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for DisallowedOriginMode
Source§impl PartialEq for DisallowedOriginMode
impl PartialEq for DisallowedOriginMode
Source§fn eq(&self, other: &DisallowedOriginMode) -> bool
fn eq(&self, other: &DisallowedOriginMode) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DisallowedOriginMode
Auto Trait Implementations§
impl Freeze for DisallowedOriginMode
impl RefUnwindSafe for DisallowedOriginMode
impl Send for DisallowedOriginMode
impl Sync for DisallowedOriginMode
impl Unpin for DisallowedOriginMode
impl UnsafeUnpin for DisallowedOriginMode
impl UnwindSafe for DisallowedOriginMode
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.