pub struct BodyMapping {
pub field_path: Option<String>,
}Expand description
Represents how an HTTP request/response body maps to a protobuf message field.
Fields§
§field_path: Option<String>The field path within the protobuf message that maps to the body. If empty or “*”, it maps to the entire message.
Implementations§
Source§impl BodyMapping
impl BodyMapping
pub fn is_whole_message(&self) -> bool
Trait Implementations§
Source§impl Clone for BodyMapping
impl Clone for BodyMapping
Source§fn clone(&self) -> BodyMapping
fn clone(&self) -> BodyMapping
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 BodyMapping
impl Debug for BodyMapping
Source§impl PartialEq for BodyMapping
impl PartialEq for BodyMapping
impl StructuralPartialEq for BodyMapping
Auto Trait Implementations§
impl Freeze for BodyMapping
impl RefUnwindSafe for BodyMapping
impl Send for BodyMapping
impl Sync for BodyMapping
impl Unpin for BodyMapping
impl UnwindSafe for BodyMapping
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