#[non_exhaustive]pub struct GrpcGatewayRouteMatchBuilder { /* private fields */ }Expand description
A builder for GrpcGatewayRouteMatch.
Implementations§
source§impl GrpcGatewayRouteMatchBuilder
 
impl GrpcGatewayRouteMatchBuilder
sourcepub fn service_name(self, input: impl Into<String>) -> Self
 
pub fn service_name(self, input: impl Into<String>) -> Self
The fully qualified domain name for the service to match from the request.
sourcepub fn set_service_name(self, input: Option<String>) -> Self
 
pub fn set_service_name(self, input: Option<String>) -> Self
The fully qualified domain name for the service to match from the request.
sourcepub fn get_service_name(&self) -> &Option<String>
 
pub fn get_service_name(&self) -> &Option<String>
The fully qualified domain name for the service to match from the request.
sourcepub fn hostname(self, input: GatewayRouteHostnameMatch) -> Self
 
pub fn hostname(self, input: GatewayRouteHostnameMatch) -> Self
The gateway route host name to be matched on.
sourcepub fn set_hostname(self, input: Option<GatewayRouteHostnameMatch>) -> Self
 
pub fn set_hostname(self, input: Option<GatewayRouteHostnameMatch>) -> Self
The gateway route host name to be matched on.
sourcepub fn get_hostname(&self) -> &Option<GatewayRouteHostnameMatch>
 
pub fn get_hostname(&self) -> &Option<GatewayRouteHostnameMatch>
The gateway route host name to be matched on.
sourcepub fn metadata(self, input: GrpcGatewayRouteMetadata) -> Self
 
pub fn metadata(self, input: GrpcGatewayRouteMetadata) -> Self
Appends an item to metadata.
To override the contents of this collection use set_metadata.
The gateway route metadata to be matched on.
sourcepub fn set_metadata(self, input: Option<Vec<GrpcGatewayRouteMetadata>>) -> Self
 
pub fn set_metadata(self, input: Option<Vec<GrpcGatewayRouteMetadata>>) -> Self
The gateway route metadata to be matched on.
sourcepub fn get_metadata(&self) -> &Option<Vec<GrpcGatewayRouteMetadata>>
 
pub fn get_metadata(&self) -> &Option<Vec<GrpcGatewayRouteMetadata>>
The gateway route metadata to be matched on.
sourcepub fn build(self) -> GrpcGatewayRouteMatch
 
pub fn build(self) -> GrpcGatewayRouteMatch
Consumes the builder and constructs a GrpcGatewayRouteMatch.
Trait Implementations§
source§impl Clone for GrpcGatewayRouteMatchBuilder
 
impl Clone for GrpcGatewayRouteMatchBuilder
source§fn clone(&self) -> GrpcGatewayRouteMatchBuilder
 
fn clone(&self) -> GrpcGatewayRouteMatchBuilder
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 Debug for GrpcGatewayRouteMatchBuilder
 
impl Debug for GrpcGatewayRouteMatchBuilder
source§impl Default for GrpcGatewayRouteMatchBuilder
 
impl Default for GrpcGatewayRouteMatchBuilder
source§fn default() -> GrpcGatewayRouteMatchBuilder
 
fn default() -> GrpcGatewayRouteMatchBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for GrpcGatewayRouteMatchBuilder
 
impl PartialEq for GrpcGatewayRouteMatchBuilder
source§fn eq(&self, other: &GrpcGatewayRouteMatchBuilder) -> bool
 
fn eq(&self, other: &GrpcGatewayRouteMatchBuilder) -> bool
This method tests for 
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for GrpcGatewayRouteMatchBuilder
Auto Trait Implementations§
impl RefUnwindSafe for GrpcGatewayRouteMatchBuilder
impl Send for GrpcGatewayRouteMatchBuilder
impl Sync for GrpcGatewayRouteMatchBuilder
impl Unpin for GrpcGatewayRouteMatchBuilder
impl UnwindSafe for GrpcGatewayRouteMatchBuilder
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
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>
Creates a shared type from an unshared type.