pub struct HttpGatewayRouteMatch {
pub prefix: String,
}
Expand description
An object that represents the criteria for determining a request match.
Fields§
§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
.
Trait Implementations§
Source§impl Clone for HttpGatewayRouteMatch
impl Clone for HttpGatewayRouteMatch
Source§fn clone(&self) -> HttpGatewayRouteMatch
fn clone(&self) -> HttpGatewayRouteMatch
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 HttpGatewayRouteMatch
impl Debug for HttpGatewayRouteMatch
Source§impl Default for HttpGatewayRouteMatch
impl Default for HttpGatewayRouteMatch
Source§fn default() -> HttpGatewayRouteMatch
fn default() -> HttpGatewayRouteMatch
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for HttpGatewayRouteMatch
impl<'de> Deserialize<'de> for HttpGatewayRouteMatch
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 HttpGatewayRouteMatch
impl PartialEq for HttpGatewayRouteMatch
Source§impl Serialize for HttpGatewayRouteMatch
impl Serialize for HttpGatewayRouteMatch
impl StructuralPartialEq for HttpGatewayRouteMatch
Auto Trait Implementations§
impl Freeze for HttpGatewayRouteMatch
impl RefUnwindSafe for HttpGatewayRouteMatch
impl Send for HttpGatewayRouteMatch
impl Sync for HttpGatewayRouteMatch
impl Unpin for HttpGatewayRouteMatch
impl UnwindSafe for HttpGatewayRouteMatch
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