Enum exonum::node::AllowOrigin [] [src]

pub enum AllowOrigin {
    Any,
    Whitelist(Vec<String>),
}

CORS header specification

Variants

Allow access from any host.

Allow access only from the following hosts.

Trait Implementations

impl Debug for AllowOrigin
[src]

[src]

Formats the value using the given formatter. Read more

impl Clone for AllowOrigin
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq for AllowOrigin
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl Eq for AllowOrigin
[src]

impl From<AllowOrigin> for CorsMiddleware
[src]

[src]

Performs the conversion.

impl Serialize for AllowOrigin
[src]

[src]

Serialize this value into the given Serde serializer. Read more

impl<'de> Deserialize<'de> for AllowOrigin
[src]

[src]

Deserialize this value from the given Serde deserializer. Read more

Auto Trait Implementations

impl Send for AllowOrigin

impl Sync for AllowOrigin