Enum exonum::node::AllowOrigin
[−]
[src]
pub enum AllowOrigin { Any, Whitelist(Vec<String>), }
CORS header specification
Variants
Any
Allow access from any host.
Whitelist(Vec<String>)
Allow access only from the following hosts.
Trait Implementations
impl Debug for AllowOrigin
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Clone for AllowOrigin
[src]
fn clone(&self) -> AllowOrigin
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialEq for AllowOrigin
[src]
fn eq(&self, __arg_0: &AllowOrigin) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &AllowOrigin) -> bool
[src]
This method tests for !=
.
impl Eq for AllowOrigin
[src]
impl From<AllowOrigin> for CorsMiddleware
[src]
fn from(allow_origin: AllowOrigin) -> CorsMiddleware
[src]
Performs the conversion.
impl Serialize for AllowOrigin
[src]
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error> where
S: Serializer,
[src]
S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl<'de> Deserialize<'de> for AllowOrigin
[src]
fn deserialize<D>(d: D) -> Result<AllowOrigin, D::Error> where
D: Deserializer<'de>,
[src]
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more