pub struct PathMatch {
pub type: Option<HTTPRouteRulesMatchesPathType>,
pub value: Option<String>,
}Expand description
Path specifies a HTTP request path matcher. If this field is not specified, a default prefix match on the “/” path is provided.
Fields§
§type: Option<HTTPRouteRulesMatchesPathType>Type specifies how to match against the path Value.
Support: Core (Exact, PathPrefix)
Support: Implementation-specific (RegularExpression)
value: Option<String>Value of the HTTP path to match against.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PathMatch
impl<'de> Deserialize<'de> for PathMatch
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 JsonSchema for PathMatch
impl JsonSchema for PathMatch
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreimpl StructuralPartialEq for PathMatch
Auto Trait Implementations§
impl Freeze for PathMatch
impl RefUnwindSafe for PathMatch
impl Send for PathMatch
impl Sync for PathMatch
impl Unpin for PathMatch
impl UnwindSafe for PathMatch
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