enum OriginOrAny {
Origin(Origin),
Any,
}
Variants§
Trait Implementations§
source§impl Clone for OriginOrAny
impl Clone for OriginOrAny
source§fn clone(&self) -> OriginOrAny
fn clone(&self) -> OriginOrAny
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 OriginOrAny
impl Debug for OriginOrAny
source§impl<'a> From<&'a OriginOrAny> for HeaderValue
impl<'a> From<&'a OriginOrAny> for HeaderValue
source§fn from(origin: &'a OriginOrAny) -> HeaderValue
fn from(origin: &'a OriginOrAny) -> HeaderValue
Converts to this type from the input type.
source§impl Hash for OriginOrAny
impl Hash for OriginOrAny
source§impl PartialEq for OriginOrAny
impl PartialEq for OriginOrAny
source§fn eq(&self, other: &OriginOrAny) -> bool
fn eq(&self, other: &OriginOrAny) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TryFrom<&HeaderValue> for OriginOrAny
impl TryFrom<&HeaderValue> for OriginOrAny
source§impl TryFromValues for OriginOrAny
impl TryFromValues for OriginOrAny
source§fn try_from_values<'i, I>(values: &mut I) -> Result<Self, Error>where
I: Iterator<Item = &'i HeaderValue>,
fn try_from_values<'i, I>(values: &mut I) -> Result<Self, Error>where
I: Iterator<Item = &'i HeaderValue>,
Try to convert from the values into an instance of
Self
.impl Eq for OriginOrAny
impl StructuralPartialEq for OriginOrAny
Auto Trait Implementations§
impl !Freeze for OriginOrAny
impl RefUnwindSafe for OriginOrAny
impl Send for OriginOrAny
impl Sync for OriginOrAny
impl Unpin for OriginOrAny
impl UnwindSafe for OriginOrAny
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