#[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.
This field is required.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 get_name(&self) -> &Option<String>
pub fn get_name(&self) -> &Option<String>
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 get_invert(&self) -> &Option<bool>
pub fn get_invert(&self) -> &Option<bool>
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 get_match(&self) -> &Option<HeaderMatchMethod>
pub fn get_match(&self) -> &Option<HeaderMatchMethod>
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) -> Result<HttpGatewayRouteHeader, BuildError>
pub fn build(self) -> Result<HttpGatewayRouteHeader, BuildError>
Consumes the builder and constructs a HttpGatewayRouteHeader
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for HttpGatewayRouteHeaderBuilder
impl Clone for HttpGatewayRouteHeaderBuilder
source§fn clone(&self) -> HttpGatewayRouteHeaderBuilder
fn clone(&self) -> HttpGatewayRouteHeaderBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for HttpGatewayRouteHeaderBuilder
impl Default for HttpGatewayRouteHeaderBuilder
source§fn default() -> HttpGatewayRouteHeaderBuilder
fn default() -> HttpGatewayRouteHeaderBuilder
source§impl PartialEq for HttpGatewayRouteHeaderBuilder
impl PartialEq for HttpGatewayRouteHeaderBuilder
source§fn eq(&self, other: &HttpGatewayRouteHeaderBuilder) -> bool
fn eq(&self, other: &HttpGatewayRouteHeaderBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.