pub struct HeaderDirective {
pub name: String,
pub value: Option<String>,
}Expand description
A single header operation within a header_up block.
value = None means the header should be removed.
Fields§
§name: String§value: Option<String>Trait Implementations§
Source§impl Clone for HeaderDirective
impl Clone for HeaderDirective
Source§fn clone(&self) -> HeaderDirective
fn clone(&self) -> HeaderDirective
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 HeaderDirective
impl Debug for HeaderDirective
Source§impl<'de> Deserialize<'de> for HeaderDirective
impl<'de> Deserialize<'de> for HeaderDirective
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
Auto Trait Implementations§
impl Freeze for HeaderDirective
impl RefUnwindSafe for HeaderDirective
impl Send for HeaderDirective
impl Sync for HeaderDirective
impl Unpin for HeaderDirective
impl UnsafeUnpin for HeaderDirective
impl UnwindSafe for HeaderDirective
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