Enum jsonrpc_http_server::cors::OriginProtocol
source · pub enum OriginProtocol {
Http,
Https,
Custom(String),
}
Expand description
Origin Protocol
Variants§
Trait Implementations§
source§impl Clone for OriginProtocol
impl Clone for OriginProtocol
source§fn clone(&self) -> OriginProtocol
fn clone(&self) -> OriginProtocol
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for OriginProtocol
impl Debug for OriginProtocol
source§impl Hash for OriginProtocol
impl Hash for OriginProtocol
source§impl PartialEq<OriginProtocol> for OriginProtocol
impl PartialEq<OriginProtocol> for OriginProtocol
source§fn eq(&self, other: &OriginProtocol) -> bool
fn eq(&self, other: &OriginProtocol) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for OriginProtocol
impl StructuralEq for OriginProtocol
impl StructuralPartialEq for OriginProtocol
Auto Trait Implementations§
impl RefUnwindSafe for OriginProtocol
impl Send for OriginProtocol
impl Sync for OriginProtocol
impl Unpin for OriginProtocol
impl UnwindSafe for OriginProtocol
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