pub enum Header<'a> {
Allow(&'a str),
Host(&'a str),
UserAgent(&'a str),
Referer(&'a str),
Custom(&'a str, &'a str),
}
Variants§
Implementations§
Trait Implementations§
Source§impl StringRepr for Header<'_>
impl StringRepr for Header<'_>
fn string_repr(&self) -> String
Auto Trait Implementations§
impl<'a> Freeze for Header<'a>
impl<'a> RefUnwindSafe for Header<'a>
impl<'a> Send for Header<'a>
impl<'a> Sync for Header<'a>
impl<'a> Unpin for Header<'a>
impl<'a> UnwindSafe for Header<'a>
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