pub struct MethodBinding {
pub http_method: String,
pub path_tmpl: PathTemplate,
pub index: usize,
pub path_params: Vec<Parameter>,
pub body: Option<BodyMapping>,
pub response_body: Option<BodyMapping>,
pub query_param_filter: Option<QueryParamFilter>,
}Expand description
Represents a binding of an HTTP method to a gRPC method.
Corresponds to Binding in grpc-gateway-golang.
Fields§
§http_method: StringThe HTTP method (e.g., “GET”, “POST”).
path_tmpl: PathTemplateThe compiled path template for this binding.
index: usizeThe index of this binding in the HttpRule.additional_bindings list (or 0 if primary).
path_params: Vec<Parameter>Path parameters extracted from the path template.
body: Option<BodyMapping>Mapping for the request body.
response_body: Option<BodyMapping>Mapping for the response body.
query_param_filter: Option<QueryParamFilter>Filter for query parameters.
Trait Implementations§
Source§impl Clone for MethodBinding
impl Clone for MethodBinding
Source§fn clone(&self) -> MethodBinding
fn clone(&self) -> MethodBinding
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MethodBinding
impl Debug for MethodBinding
Source§impl PartialEq for MethodBinding
impl PartialEq for MethodBinding
impl StructuralPartialEq for MethodBinding
Auto Trait Implementations§
impl Freeze for MethodBinding
impl RefUnwindSafe for MethodBinding
impl Send for MethodBinding
impl Sync for MethodBinding
impl Unpin for MethodBinding
impl UnwindSafe for MethodBinding
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