pub struct GrpcRouteMetadataMatchMethod {
pub exact: Option<String>,
pub prefix: Option<String>,
pub range: Option<MatchRange>,
pub regex: Option<String>,
pub suffix: Option<String>,
}
Expand description
An object that represents the match method. Specify one of the match values.
Fields§
§exact: Option<String>
The value sent by the client must match the specified value exactly.
prefix: Option<String>
The value sent by the client must begin with the specified characters.
range: Option<MatchRange>
An object that represents the range of values to match on.
regex: Option<String>
The value sent by the client must include the specified characters.
suffix: Option<String>
The value sent by the client must end with the specified characters.
Trait Implementations§
Source§impl Clone for GrpcRouteMetadataMatchMethod
impl Clone for GrpcRouteMetadataMatchMethod
Source§fn clone(&self) -> GrpcRouteMetadataMatchMethod
fn clone(&self) -> GrpcRouteMetadataMatchMethod
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 GrpcRouteMetadataMatchMethod
impl Debug for GrpcRouteMetadataMatchMethod
Source§impl Default for GrpcRouteMetadataMatchMethod
impl Default for GrpcRouteMetadataMatchMethod
Source§fn default() -> GrpcRouteMetadataMatchMethod
fn default() -> GrpcRouteMetadataMatchMethod
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GrpcRouteMetadataMatchMethod
impl<'de> Deserialize<'de> for GrpcRouteMetadataMatchMethod
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 GrpcRouteMetadataMatchMethod
impl PartialEq for GrpcRouteMetadataMatchMethod
Source§fn eq(&self, other: &GrpcRouteMetadataMatchMethod) -> bool
fn eq(&self, other: &GrpcRouteMetadataMatchMethod) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for GrpcRouteMetadataMatchMethod
Auto Trait Implementations§
impl Freeze for GrpcRouteMetadataMatchMethod
impl RefUnwindSafe for GrpcRouteMetadataMatchMethod
impl Send for GrpcRouteMetadataMatchMethod
impl Sync for GrpcRouteMetadataMatchMethod
impl Unpin for GrpcRouteMetadataMatchMethod
impl UnwindSafe for GrpcRouteMetadataMatchMethod
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