Enum jsonrpc_http_server::RestApi
[−]
[src]
pub enum RestApi {
Secure,
Unsecure,
Disabled,
}REST -> RPC converter state.
Variants
SecureThe REST -> RPC converter is enabled
and requires Content-Type: application/json header
(even though the body should be empty).
This protects from submitting an RPC call
from unwanted origins.
UnsecureThe REST -> RPC converter is enabled
and does not require any Content-Type headers.
NOTE: This allows sending RPCs via HTTP forms
from any website.
DisabledThe REST -> RPC converter is disabled.
Trait Implementations
impl Debug for RestApi[src]
impl PartialEq for RestApi[src]
fn eq(&self, __arg_0: &RestApi) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
This method tests for !=.
impl Clone for RestApi[src]
fn clone(&self) -> RestApi[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