Struct aws_sdk_appmesh::model::HttpRouteMatch
source · [−]#[non_exhaustive]pub struct HttpRouteMatch {
pub prefix: Option<String>,
pub path: Option<HttpPathMatch>,
pub query_parameters: Option<Vec<HttpQueryParameter>>,
pub method: Option<HttpMethod>,
pub scheme: Option<HttpScheme>,
pub headers: Option<Vec<HttpRouteHeader>>,
}
Expand description
An object that represents the requirements for a route to match HTTP requests for a virtual router.
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.prefix: Option<String>
Specifies the path to match requests with. This parameter must always start with /
, which by itself matches all requests to the virtual service name. You can also match for path-based routing of requests. For example, if your virtual service name is my-service.local
and you want the route to match requests to my-service.local/metrics
, your prefix should be /metrics
.
path: Option<HttpPathMatch>
The client request path to match on.
query_parameters: Option<Vec<HttpQueryParameter>>
The client request query parameters to match on.
method: Option<HttpMethod>
The client request method to match on. Specify only one.
scheme: Option<HttpScheme>
The client request scheme to match on. Specify only one. Applicable only for HTTP2 routes.
headers: Option<Vec<HttpRouteHeader>>
The client request headers to match on.
Implementations
sourceimpl HttpRouteMatch
impl HttpRouteMatch
sourcepub fn prefix(&self) -> Option<&str>
pub fn prefix(&self) -> Option<&str>
Specifies the path to match requests with. This parameter must always start with /
, which by itself matches all requests to the virtual service name. You can also match for path-based routing of requests. For example, if your virtual service name is my-service.local
and you want the route to match requests to my-service.local/metrics
, your prefix should be /metrics
.
sourcepub fn path(&self) -> Option<&HttpPathMatch>
pub fn path(&self) -> Option<&HttpPathMatch>
The client request path to match on.
sourcepub fn query_parameters(&self) -> Option<&[HttpQueryParameter]>
pub fn query_parameters(&self) -> Option<&[HttpQueryParameter]>
The client request query parameters to match on.
sourcepub fn method(&self) -> Option<&HttpMethod>
pub fn method(&self) -> Option<&HttpMethod>
The client request method to match on. Specify only one.
sourcepub fn scheme(&self) -> Option<&HttpScheme>
pub fn scheme(&self) -> Option<&HttpScheme>
The client request scheme to match on. Specify only one. Applicable only for HTTP2 routes.
sourceimpl HttpRouteMatch
impl HttpRouteMatch
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture HttpRouteMatch
Trait Implementations
sourceimpl Clone for HttpRouteMatch
impl Clone for HttpRouteMatch
sourcefn clone(&self) -> HttpRouteMatch
fn clone(&self) -> HttpRouteMatch
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for HttpRouteMatch
impl Debug for HttpRouteMatch
sourceimpl PartialEq<HttpRouteMatch> for HttpRouteMatch
impl PartialEq<HttpRouteMatch> for HttpRouteMatch
sourcefn eq(&self, other: &HttpRouteMatch) -> bool
fn eq(&self, other: &HttpRouteMatch) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &HttpRouteMatch) -> bool
fn ne(&self, other: &HttpRouteMatch) -> bool
This method tests for !=
.
impl StructuralPartialEq for HttpRouteMatch
Auto Trait Implementations
impl RefUnwindSafe for HttpRouteMatch
impl Send for HttpRouteMatch
impl Sync for HttpRouteMatch
impl Unpin for HttpRouteMatch
impl UnwindSafe for HttpRouteMatch
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more