#[non_exhaustive]pub struct HttpGatewayRouteHeaderBuilder { /* private fields */ }
Expand description
A builder for HttpGatewayRouteHeader
.
Implementations§
source§impl HttpGatewayRouteHeaderBuilder
impl HttpGatewayRouteHeaderBuilder
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
A name for the HTTP header in the gateway route that will be matched on.
sourcepub fn set_name(self, input: Option<String>) -> Self
pub fn set_name(self, input: Option<String>) -> Self
A name for the HTTP header in the gateway route that will be matched on.
sourcepub fn invert(self, input: bool) -> Self
pub fn invert(self, input: bool) -> Self
Specify True
to match anything except the match criteria. The default value is False
.
sourcepub fn set_invert(self, input: Option<bool>) -> Self
pub fn set_invert(self, input: Option<bool>) -> Self
Specify True
to match anything except the match criteria. The default value is False
.
sourcepub fn match(self, input: HeaderMatchMethod) -> Self
pub fn match(self, input: HeaderMatchMethod) -> Self
An object that represents the method and value to match with the header value sent in a request. Specify one match method.
sourcepub fn set_match(self, input: Option<HeaderMatchMethod>) -> Self
pub fn set_match(self, input: Option<HeaderMatchMethod>) -> Self
An object that represents the method and value to match with the header value sent in a request. Specify one match method.
sourcepub fn build(self) -> HttpGatewayRouteHeader
pub fn build(self) -> HttpGatewayRouteHeader
Consumes the builder and constructs a HttpGatewayRouteHeader
.
Trait Implementations§
source§impl Clone for HttpGatewayRouteHeaderBuilder
impl Clone for HttpGatewayRouteHeaderBuilder
source§fn clone(&self) -> HttpGatewayRouteHeaderBuilder
fn clone(&self) -> HttpGatewayRouteHeaderBuilder
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 Default for HttpGatewayRouteHeaderBuilder
impl Default for HttpGatewayRouteHeaderBuilder
source§fn default() -> HttpGatewayRouteHeaderBuilder
fn default() -> HttpGatewayRouteHeaderBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq<HttpGatewayRouteHeaderBuilder> for HttpGatewayRouteHeaderBuilder
impl PartialEq<HttpGatewayRouteHeaderBuilder> for HttpGatewayRouteHeaderBuilder
source§fn eq(&self, other: &HttpGatewayRouteHeaderBuilder) -> bool
fn eq(&self, other: &HttpGatewayRouteHeaderBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for HttpGatewayRouteHeaderBuilder
Auto Trait Implementations§
impl RefUnwindSafe for HttpGatewayRouteHeaderBuilder
impl Send for HttpGatewayRouteHeaderBuilder
impl Sync for HttpGatewayRouteHeaderBuilder
impl Unpin for HttpGatewayRouteHeaderBuilder
impl UnwindSafe for HttpGatewayRouteHeaderBuilder
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