pub struct CorsOrigin(/* private fields */);
Expand description
Origin hosts allowed with CORS requests to the RPC API
Trait Implementations§
Source§impl AsRef<str> for CorsOrigin
impl AsRef<str> for CorsOrigin
Source§impl Clone for CorsOrigin
impl Clone for CorsOrigin
Source§fn clone(&self) -> CorsOrigin
fn clone(&self) -> CorsOrigin
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 CorsOrigin
impl Debug for CorsOrigin
Source§impl<'de> Deserialize<'de> for CorsOrigin
impl<'de> Deserialize<'de> for CorsOrigin
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for CorsOrigin
impl Display for CorsOrigin
Source§impl PartialEq for CorsOrigin
impl PartialEq for CorsOrigin
Source§impl Serialize for CorsOrigin
impl Serialize for CorsOrigin
impl Eq for CorsOrigin
impl StructuralPartialEq for CorsOrigin
Auto Trait Implementations§
impl Freeze for CorsOrigin
impl RefUnwindSafe for CorsOrigin
impl Send for CorsOrigin
impl Sync for CorsOrigin
impl Unpin for CorsOrigin
impl UnwindSafe for CorsOrigin
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