Enum polaris_specification::v1::match_argument::Type
source · #[repr(i32)]
pub enum Type {
Custom,
Method,
Header,
Query,
CallerService,
CallerIp,
}
Expand description
label type for gateway request
Variants§
Custom
custom arguments
Method
method, match the http post/get/put/delete or grpc method
Header
header, match the http header, dubbo attachment, grpc header
Query
query, match the http query, dubbo argument
CallerService
caller service
CallerIp
caller host ip
Implementations§
source§impl Type
impl Type
sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
source§impl Ord for Type
impl Ord for Type
source§impl PartialEq<Type> for Type
impl PartialEq<Type> for Type
source§impl PartialOrd<Type> for Type
impl PartialOrd<Type> for Type
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more