Enum jsonrpsee_core::server::access_control::cors::AllowOrigin
source · pub enum AllowOrigin {
Origin(Origin),
Null,
Any,
}
Expand description
Origins allowed to access
Variants§
Origin(Origin)
Specific origin.
Null
null-origin (file:///, sandboxed iframe)
Any
Any non-null origin
Trait Implementations§
source§impl Clone for AllowOrigin
impl Clone for AllowOrigin
source§fn clone(&self) -> AllowOrigin
fn clone(&self) -> AllowOrigin
Returns a copy of the value. Read more
1.0.0 · 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 AllowOrigin
impl Debug for AllowOrigin
source§impl Display for AllowOrigin
impl Display for AllowOrigin
source§impl PartialEq<AllowOrigin> for AllowOrigin
impl PartialEq<AllowOrigin> for AllowOrigin
source§fn eq(&self, other: &AllowOrigin) -> bool
fn eq(&self, other: &AllowOrigin) -> bool
impl Eq for AllowOrigin
impl StructuralEq for AllowOrigin
impl StructuralPartialEq for AllowOrigin
Auto Trait Implementations§
impl RefUnwindSafe for AllowOrigin
impl Send for AllowOrigin
impl Sync for AllowOrigin
impl Unpin for AllowOrigin
impl UnwindSafe for AllowOrigin
Blanket Implementations§
source§impl<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,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.