pub enum AccessControlAllowOrigin {
Value(Origin),
Null,
Any,
}
Expand description
Origins allowed to access
Variants
Value(Origin)
Specific hostname
Null
null-origin (file:///, sandboxed iframe)
Any
Any non-null origin
Trait Implementations
sourceimpl Clone for AccessControlAllowOrigin
impl Clone for AccessControlAllowOrigin
sourcefn clone(&self) -> AccessControlAllowOrigin
fn clone(&self) -> AccessControlAllowOrigin
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for AccessControlAllowOrigin
impl Debug for AccessControlAllowOrigin
sourceimpl Display for AccessControlAllowOrigin
impl Display for AccessControlAllowOrigin
sourceimpl<T> From<T> for AccessControlAllowOriginwhere
T: Into<String>,
impl<T> From<T> for AccessControlAllowOriginwhere
T: Into<String>,
sourcefn from(s: T) -> AccessControlAllowOrigin
fn from(s: T) -> AccessControlAllowOrigin
Converts to this type from the input type.
sourceimpl PartialEq<AccessControlAllowOrigin> for AccessControlAllowOrigin
impl PartialEq<AccessControlAllowOrigin> for AccessControlAllowOrigin
sourcefn eq(&self, other: &AccessControlAllowOrigin) -> bool
fn eq(&self, other: &AccessControlAllowOrigin) -> bool
impl Eq for AccessControlAllowOrigin
impl StructuralEq for AccessControlAllowOrigin
impl StructuralPartialEq for AccessControlAllowOrigin
Auto Trait Implementations
impl RefUnwindSafe for AccessControlAllowOrigin
impl Send for AccessControlAllowOrigin
impl Sync for AccessControlAllowOrigin
impl Unpin for AccessControlAllowOrigin
impl UnwindSafe for AccessControlAllowOrigin
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.