pub enum GrpcMethodMatch {
Exact {
method: Option<String>,
service: Option<String>,
},
RegularExpression {
method: Option<String>,
service: Option<String>,
},
}
Expand description
Method specifies a gRPC request service/method matcher. If this field is not specified, all services and methods will match.
Variants§
Exact
Fields
RegularExpression
Trait Implementations§
Source§impl Clone for GrpcMethodMatch
impl Clone for GrpcMethodMatch
Source§fn clone(&self) -> GrpcMethodMatch
fn clone(&self) -> GrpcMethodMatch
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 GrpcMethodMatch
impl Debug for GrpcMethodMatch
Source§impl<'de> Deserialize<'de> for GrpcMethodMatch
impl<'de> Deserialize<'de> for GrpcMethodMatch
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonSchema for GrpcMethodMatch
impl JsonSchema for GrpcMethodMatch
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
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 is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be 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 Eq 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