pub trait HasBody {
type Body;
// Required methods
fn body(&self) -> &Self::Body;
fn body_mut(&mut self) -> &mut Self::Body;
fn set_body(&mut self, body: Self::Body);
}
Expand description
This trait is implemented by types that have a distinct body type.