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

0: CustomHttpPattern

Implementations

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Wrap the input message T in a tonic::Request

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

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