Enum jsonrpc_server_utils::cors::CorsHeader [] [src]

pub enum CorsHeader<T = AccessControlAllowOrigin> {
    NotRequired,
    Invalid,
    Ok(T),
}

CORS Header Result.

Variants

CORS header was not required. Origin is not present in the request.

CORS header is not returned, Origin is not allowed to access the resource.

CORS header to include in the response. Origin is allowed to access the resource.

Methods

impl<T> CorsHeader<T>
[src]

Maps Ok variant of CorsHeader.

Trait Implementations

impl<T: Debug> Debug for CorsHeader<T>
[src]

Formats the value using the given formatter.

impl<T: Clone> Clone for CorsHeader<T>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<T: PartialEq> PartialEq for CorsHeader<T>
[src]

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

This method tests for !=.

impl<T: Eq> Eq for CorsHeader<T>
[src]

impl<T> Into<Option<T>> for CorsHeader<T>
[src]

Performs the conversion.