Enum googapis::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
Get(String)
Maps to HTTP GET. Used for listing and getting information about resources.
Tuple Fields of Get
0: String
Put(String)
Maps to HTTP PUT. Used for replacing a resource.
Tuple Fields of Put
0: String
Post(String)
Maps to HTTP POST. Used for creating a resource or performing an action.
Tuple Fields of Post
0: String
Delete(String)
Maps to HTTP DELETE. Used for deleting a resource.
Tuple Fields of Delete
0: String
Patch(String)
Maps to HTTP PATCH. Used for updating a resource.
Tuple Fields of Patch
0: String
Custom(CustomHttpPattern)
The 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
Wrap the input message T
in a tonic::Request
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more