Trait sdml_core::model::HasOptionalBody
source · pub trait HasOptionalBody<T> {
// Required methods
fn body(&self) -> Option<&T>;
fn body_mut(&mut self) -> Option<&mut T>;
fn set_body(&mut self, body: T);
fn unset_body(&mut self);
// Provided method
fn has_body(&self) -> bool { ... }
}
Expand description
This trait is implemented by types that have a distinct, but optional, body type.