Enum headers::common::origin::OriginOrNull
source · enum OriginOrNull {
Origin(Scheme, Authority),
Null,
}
Variants§
Implementations§
source§impl OriginOrNull
impl OriginOrNull
fn try_from_value(value: &HeaderValue) -> Option<Self>
Trait Implementations§
source§impl Clone for OriginOrNull
impl Clone for OriginOrNull
source§fn clone(&self) -> OriginOrNull
fn clone(&self) -> OriginOrNull
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 OriginOrNull
impl Debug for OriginOrNull
source§impl<'a> From<&'a OriginOrNull> for HeaderValue
impl<'a> From<&'a OriginOrNull> for HeaderValue
source§fn from(origin: &'a OriginOrNull) -> HeaderValue
fn from(origin: &'a OriginOrNull) -> HeaderValue
Converts to this type from the input type.
source§impl Hash for OriginOrNull
impl Hash for OriginOrNull
source§impl PartialEq for OriginOrNull
impl PartialEq for OriginOrNull
source§impl TryFromValues for OriginOrNull
impl TryFromValues for OriginOrNull
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 OriginOrNull
impl StructuralPartialEq for OriginOrNull
Auto Trait Implementations§
impl !Freeze for OriginOrNull
impl RefUnwindSafe for OriginOrNull
impl Send for OriginOrNull
impl Sync for OriginOrNull
impl Unpin for OriginOrNull
impl UnwindSafe for OriginOrNull
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)