pub struct HeaderEditConfig {
pub position: String,
pub key: String,
pub value: String,
}Expand description
A single header mutation as serialised under
[[clusters.<id>.frontends.headers]]. Maps to the proto Header
message at request-build time.
position accepts request, response, or both (case-insensitive).
An empty value deletes the header by name (HAProxy del-header parity).
Fields§
§position: String§key: String§value: StringTrait Implementations§
Source§impl Clone for HeaderEditConfig
impl Clone for HeaderEditConfig
Source§fn clone(&self) -> HeaderEditConfig
fn clone(&self) -> HeaderEditConfig
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 HeaderEditConfig
impl Debug for HeaderEditConfig
Source§impl<'de> Deserialize<'de> for HeaderEditConfig
impl<'de> Deserialize<'de> for HeaderEditConfig
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 Hash for HeaderEditConfig
impl Hash for HeaderEditConfig
Source§impl PartialEq for HeaderEditConfig
impl PartialEq for HeaderEditConfig
Source§fn eq(&self, other: &HeaderEditConfig) -> bool
fn eq(&self, other: &HeaderEditConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for HeaderEditConfig
impl Serialize for HeaderEditConfig
impl Eq for HeaderEditConfig
impl StructuralPartialEq for HeaderEditConfig
Auto Trait Implementations§
impl Freeze for HeaderEditConfig
impl RefUnwindSafe for HeaderEditConfig
impl Send for HeaderEditConfig
impl Sync for HeaderEditConfig
impl Unpin for HeaderEditConfig
impl UnsafeUnpin for HeaderEditConfig
impl UnwindSafe for HeaderEditConfig
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.