Struct aws_sdk_appmesh::types::GrpcRouteMatch
source · #[non_exhaustive]pub struct GrpcRouteMatch {
pub service_name: Option<String>,
pub method_name: Option<String>,
pub metadata: Option<Vec<GrpcRouteMetadata>>,
pub port: Option<i32>,
}
Expand description
An object that represents the criteria for determining a request match.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.service_name: Option<String>
The fully qualified domain name for the service to match from the request.
method_name: Option<String>
The method name to match from the request. If you specify a name, you must also specify a serviceName
.
metadata: Option<Vec<GrpcRouteMetadata>>
An object that represents the data to match from the request.
port: Option<i32>
The port number to match on.
Implementations§
source§impl GrpcRouteMatch
impl GrpcRouteMatch
sourcepub fn service_name(&self) -> Option<&str>
pub fn service_name(&self) -> Option<&str>
The fully qualified domain name for the service to match from the request.
sourcepub fn method_name(&self) -> Option<&str>
pub fn method_name(&self) -> Option<&str>
The method name to match from the request. If you specify a name, you must also specify a serviceName
.
sourcepub fn metadata(&self) -> &[GrpcRouteMetadata]
pub fn metadata(&self) -> &[GrpcRouteMetadata]
An object that represents the data to match from the request.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .metadata.is_none()
.
source§impl GrpcRouteMatch
impl GrpcRouteMatch
sourcepub fn builder() -> GrpcRouteMatchBuilder
pub fn builder() -> GrpcRouteMatchBuilder
Creates a new builder-style object to manufacture GrpcRouteMatch
.
Trait Implementations§
source§impl Clone for GrpcRouteMatch
impl Clone for GrpcRouteMatch
source§fn clone(&self) -> GrpcRouteMatch
fn clone(&self) -> GrpcRouteMatch
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for GrpcRouteMatch
impl Debug for GrpcRouteMatch
source§impl PartialEq for GrpcRouteMatch
impl PartialEq for GrpcRouteMatch
source§fn eq(&self, other: &GrpcRouteMatch) -> bool
fn eq(&self, other: &GrpcRouteMatch) -> bool
self
and other
values to be equal, and is used
by ==
.