#[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 ==.impl StructuralPartialEq for HttpGatewayRouteHeaderBuilder
Auto Trait Implementations§
impl Freeze for HttpGatewayRouteHeaderBuilder
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more