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
impl StructuralPartialEq for GrpcRouteMatch
Auto Trait Implementations§
impl Freeze for GrpcRouteMatch
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
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