pub enum RestApi {
Secure,
Unsecure,
Disabled,
}
Expand description
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 Copy for RestApi
impl StructuralPartialEq for RestApi
Auto Trait Implementations§
impl Freeze for RestApi
impl RefUnwindSafe for RestApi
impl Send for RestApi
impl Sync for RestApi
impl Unpin for RestApi
impl UnwindSafe for RestApi
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more