pub struct ConsulHttpHeaderModifiersBuilder { /* private fields */ }
Expand description
Builder for ConsulHttpHeaderModifiers
.
Implementations§
Source§impl ConsulHttpHeaderModifiersBuilder
impl ConsulHttpHeaderModifiersBuilder
Sourcepub fn add(&mut self, value: Option<HashMap<String, String>>) -> &mut Self
pub fn add(&mut self, value: Option<HashMap<String, String>>) -> &mut Self
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).
Sourcepub fn set(&mut self, value: Option<HashMap<String, String>>) -> &mut Self
pub fn set(&mut self, value: Option<HashMap<String, String>>) -> &mut Self
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.
Sourcepub fn remove(&mut self, value: Option<Vec<String>>) -> &mut Self
pub fn remove(&mut self, value: Option<Vec<String>>) -> &mut Self
Remove is the set of header names that should be stripped from the request or response.
Sourcepub fn build(
&self,
) -> Result<ConsulHttpHeaderModifiers, ConsulHttpHeaderModifiersBuilderError>
pub fn build( &self, ) -> Result<ConsulHttpHeaderModifiers, ConsulHttpHeaderModifiersBuilderError>
Trait Implementations§
Source§impl Clone for ConsulHttpHeaderModifiersBuilder
impl Clone for ConsulHttpHeaderModifiersBuilder
Source§fn clone(&self) -> ConsulHttpHeaderModifiersBuilder
fn clone(&self) -> ConsulHttpHeaderModifiersBuilder
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for ConsulHttpHeaderModifiersBuilder
impl RefUnwindSafe for ConsulHttpHeaderModifiersBuilder
impl Send for ConsulHttpHeaderModifiersBuilder
impl Sync for ConsulHttpHeaderModifiersBuilder
impl Unpin for ConsulHttpHeaderModifiersBuilder
impl UnwindSafe for ConsulHttpHeaderModifiersBuilder
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