pub struct HttpRouteMatch {
pub headers: Option<Vec<HttpRouteHeader>>,
pub method: Option<String>,
pub prefix: String,
pub scheme: Option<String>,
}
Expand description
An object that represents the requirements for a route to match HTTP requests for a virtual router.
Fields§
§headers: Option<Vec<HttpRouteHeader>>
An object that represents the client request headers to match on.
method: Option<String>
The client request method to match on. Specify only one.
prefix: 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
.
scheme: Option<String>
The client request scheme to match on. Specify only one.
Trait Implementations§
Source§impl Clone for HttpRouteMatch
impl Clone for HttpRouteMatch
Source§fn clone(&self) -> HttpRouteMatch
fn clone(&self) -> HttpRouteMatch
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 HttpRouteMatch
impl Debug for HttpRouteMatch
Source§impl Default for HttpRouteMatch
impl Default for HttpRouteMatch
Source§fn default() -> HttpRouteMatch
fn default() -> HttpRouteMatch
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for HttpRouteMatch
impl<'de> Deserialize<'de> for HttpRouteMatch
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for HttpRouteMatch
impl PartialEq for HttpRouteMatch
Source§impl Serialize for HttpRouteMatch
impl Serialize for HttpRouteMatch
impl StructuralPartialEq for HttpRouteMatch
Auto Trait Implementations§
impl Freeze for HttpRouteMatch
impl RefUnwindSafe for HttpRouteMatch
impl Send for HttpRouteMatch
impl Sync for HttpRouteMatch
impl Unpin for HttpRouteMatch
impl UnwindSafe for HttpRouteMatch
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