Enum jsonrpc_server_utils::cors::AccessControlAllowOrigin [] [src]

pub enum AccessControlAllowOrigin {
    Value(Origin),
    Null,
    Any,
}

Origins allowed to access

Variants

Specific hostname

null-origin (file:///, sandboxed iframe)

Any non-null origin

Trait Implementations

impl Debug for AccessControlAllowOrigin
[src]

[]

Formats the value using the given formatter.

impl Clone for AccessControlAllowOrigin
[src]

[]

Returns a copy of the value. Read more

[]

Performs copy-assignment from source. Read more

impl PartialEq for AccessControlAllowOrigin
[src]

[]

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

[]

This method tests for !=.

impl Eq for AccessControlAllowOrigin
[src]

impl Display for AccessControlAllowOrigin
[src]

[]

Formats the value using the given formatter. Read more

impl<T: Into<String>> From<T> for AccessControlAllowOrigin
[src]

[]

Performs the conversion.