Enum solana_jsonrpc_http_server::RestApi [−][src]
pub enum RestApi { Secure, Unsecure, Disabled, }
REST -> RPC converter state.
Variants
Secure
The 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.
Unsecure
The REST -> RPC converter is enabled
and does not require any Content-Type
headers.
NOTE: This allows sending RPCs via HTTP forms
from any website.
Disabled
The REST -> RPC converter is disabled.
Trait Implementations
impl Debug for RestApi
[src]
impl Debug for RestApi
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for RestApi
[src]
impl PartialEq for RestApi
fn eq(&self, other: &RestApi) -> bool
[src]
fn eq(&self, other: &RestApi) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]This method tests for !=
.
impl Clone for RestApi
[src]
impl Clone for RestApi
fn clone(&self) -> RestApi
[src]
fn clone(&self) -> RestApi
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Copy for RestApi
[src]
impl Copy for RestApi