pub struct ConsulHTTPHeaderModifiers {
pub remove: Option<Vec<String>>,
pub add: Option<HashMap<String, String>>,
pub set: Option<HashMap<String, String>>,
}
Expand description
ConsulHTTPHeaderModifiers is a set of rules for HTTP header modification that should be performed by proxies as the request passes through them. It can operate on either request or response headers depending on the context in which it is used.
This struct was generated based on the Go types of the official Nomad API.
Fields§
§remove: Option<Vec<String>>
Remove is the set of header names that should be stripped from the request or response.
add: Option<HashMap<String, String>>
Add is a set of name -> value pairs that should be appended to the request or response (i.e. allowing duplicates if the same header already exists).
set: Option<HashMap<String, String>>
Set is a set of name -> value pairs that should be added to the request or response, overwriting any existing header values of the same name.
Trait Implementations§
Source§impl Clone for ConsulHTTPHeaderModifiers
impl Clone for ConsulHTTPHeaderModifiers
Source§fn clone(&self) -> ConsulHTTPHeaderModifiers
fn clone(&self) -> ConsulHTTPHeaderModifiers
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 ConsulHTTPHeaderModifiers
impl Debug for ConsulHTTPHeaderModifiers
Source§impl Default for ConsulHTTPHeaderModifiers
impl Default for ConsulHTTPHeaderModifiers
Source§fn default() -> ConsulHTTPHeaderModifiers
fn default() -> ConsulHTTPHeaderModifiers
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ConsulHTTPHeaderModifiers
impl<'de> Deserialize<'de> for ConsulHTTPHeaderModifiers
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
impl StructuralPartialEq for ConsulHTTPHeaderModifiers
Auto Trait Implementations§
impl Freeze for ConsulHTTPHeaderModifiers
impl RefUnwindSafe for ConsulHTTPHeaderModifiers
impl Send for ConsulHTTPHeaderModifiers
impl Sync for ConsulHTTPHeaderModifiers
impl Unpin for ConsulHTTPHeaderModifiers
impl UnwindSafe for ConsulHTTPHeaderModifiers
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