pub struct GRPCMethodMatch {
pub method: Option<String>,
pub service: Option<String>,
pub type: Option<HeaderMatchType>,
}Expand description
Method specifies a gRPC request service/method matcher. If this field is not specified, all services and methods will match.
Fields§
§method: Option<String>Value of the method to match against. If left empty or omitted, will match all services.
At least one of Service and Method MUST be a non-empty string.
service: Option<String>Value of the service to match against. If left empty or omitted, will match any service.
At least one of Service and Method MUST be a non-empty string.
type: Option<HeaderMatchType>Type specifies how to match against the service and/or method. Support: Core (Exact with service and method specified)
Support: Implementation-specific (Exact with method specified but no service specified)
Support: Implementation-specific (RegularExpression)
Trait Implementations§
Source§impl Clone for GRPCMethodMatch
impl Clone for GRPCMethodMatch
Source§fn clone(&self) -> GRPCMethodMatch
fn clone(&self) -> GRPCMethodMatch
Returns a duplicate 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 GRPCMethodMatch
impl Debug for GRPCMethodMatch
Source§impl Default for GRPCMethodMatch
impl Default for GRPCMethodMatch
Source§fn default() -> GRPCMethodMatch
fn default() -> GRPCMethodMatch
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GRPCMethodMatch
impl<'de> Deserialize<'de> for GRPCMethodMatch
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 GRPCMethodMatch
impl JsonSchema for GRPCMethodMatch
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 moreSource§impl PartialEq for GRPCMethodMatch
impl PartialEq for GRPCMethodMatch
Source§impl Serialize for GRPCMethodMatch
impl Serialize for GRPCMethodMatch
impl StructuralPartialEq for GRPCMethodMatch
Auto Trait Implementations§
impl Freeze for GRPCMethodMatch
impl RefUnwindSafe for GRPCMethodMatch
impl Send for GRPCMethodMatch
impl Sync for GRPCMethodMatch
impl Unpin for GRPCMethodMatch
impl UnwindSafe for GRPCMethodMatch
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