#[non_exhaustive]pub struct GrpcGatewayRouteMetadataBuilder { /* private fields */ }Expand description
A builder for GrpcGatewayRouteMetadata.
Implementations§
source§impl GrpcGatewayRouteMetadataBuilder
impl GrpcGatewayRouteMetadataBuilder
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: GrpcMetadataMatchMethod) -> Self
pub fn match(self, input: GrpcMetadataMatchMethod) -> Self
The criteria for determining a metadata match.
sourcepub fn set_match(self, input: Option<GrpcMetadataMatchMethod>) -> Self
pub fn set_match(self, input: Option<GrpcMetadataMatchMethod>) -> Self
The criteria for determining a metadata match.
sourcepub fn build(self) -> GrpcGatewayRouteMetadata
pub fn build(self) -> GrpcGatewayRouteMetadata
Consumes the builder and constructs a GrpcGatewayRouteMetadata.
Trait Implementations§
source§impl Clone for GrpcGatewayRouteMetadataBuilder
impl Clone for GrpcGatewayRouteMetadataBuilder
source§fn clone(&self) -> GrpcGatewayRouteMetadataBuilder
fn clone(&self) -> GrpcGatewayRouteMetadataBuilder
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 GrpcGatewayRouteMetadataBuilder
impl Default for GrpcGatewayRouteMetadataBuilder
source§fn default() -> GrpcGatewayRouteMetadataBuilder
fn default() -> GrpcGatewayRouteMetadataBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq<GrpcGatewayRouteMetadataBuilder> for GrpcGatewayRouteMetadataBuilder
impl PartialEq<GrpcGatewayRouteMetadataBuilder> for GrpcGatewayRouteMetadataBuilder
source§fn eq(&self, other: &GrpcGatewayRouteMetadataBuilder) -> bool
fn eq(&self, other: &GrpcGatewayRouteMetadataBuilder) -> bool
This method tests for
self and other values to be equal, and is used
by ==.