Enum opentelemetry_stackdriver::proto::google::api::http_rule::Pattern [−][src]
pub enum Pattern {
Get(String),
Put(String),
Post(String),
Delete(String),
Patch(String),
Custom(CustomHttpPattern),
}Expand description
Determines the URL pattern is matched by this rules. This pattern can be used with any of the {get|put|post|delete|patch} methods. A custom method can be defined using the ‘custom’ field.
Variants
Maps to HTTP GET. Used for listing and getting information about resources.
Tuple Fields of Get
0: StringMaps to HTTP PUT. Used for replacing a resource.
Tuple Fields of Put
0: StringMaps to HTTP POST. Used for creating a resource or performing an action.
Tuple Fields of Post
0: StringMaps to HTTP DELETE. Used for deleting a resource.
Tuple Fields of Delete
0: StringMaps to HTTP PATCH. Used for updating a resource.
Tuple Fields of Patch
0: StringThe custom pattern is used for specifying an HTTP method that is not
included in the pattern field, such as HEAD, or “*” to leave the
HTTP method unspecified for this rule. The wild-card rule is useful
for services that provide content to Web (HTML) clients.
Tuple Fields of Custom
Implementations
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Pattern
impl UnwindSafe for Pattern
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
Wrap the input message T in a tonic::Request