pub struct HttpRule {
pub selector: String,
pub pattern: Pattern,
pub body: String,
pub response_body: String,
pub additional_bindings: Vec<HttpRule>,
}Expand description
Represents a rule that maps an RPC method to one or more HTTP REST API methods.
This corresponds to google.api.HttpRule.
Fields§
§selector: StringSelects a method to which this rule applies.
pattern: PatternThe pattern for the rule.
body: StringThe name of the request field whose value is mapped to the HTTP request body.
response_body: StringThe name of the response field whose value is mapped to the HTTP response body.
additional_bindings: Vec<HttpRule>Additional HTTP bindings for the selector.
Trait Implementations§
impl StructuralPartialEq for HttpRule
Auto Trait Implementations§
impl Freeze for HttpRule
impl RefUnwindSafe for HttpRule
impl Send for HttpRule
impl Sync for HttpRule
impl Unpin for HttpRule
impl UnwindSafe for HttpRule
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