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
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
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) -> Option<&[GrpcRouteMetadata]>
pub fn metadata(&self) -> Option<&[GrpcRouteMetadata]>
An object that represents the data to match from the request.
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
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 GrpcRouteMatch
impl Debug for GrpcRouteMatch
source§impl PartialEq<GrpcRouteMatch> for GrpcRouteMatch
impl PartialEq<GrpcRouteMatch> for GrpcRouteMatch
source§fn eq(&self, other: &GrpcRouteMatch) -> bool
fn eq(&self, other: &GrpcRouteMatch) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for GrpcRouteMatch
Auto Trait Implementations§
impl RefUnwindSafe for GrpcRouteMatch
impl Send for GrpcRouteMatch
impl Sync for GrpcRouteMatch
impl Unpin for GrpcRouteMatch
impl UnwindSafe for GrpcRouteMatch
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