use crate::model::base::OwnershipAttributes;
pub trait HasOwnershipAttributes {
fn ownership(&self) -> &OwnershipAttributes;
fn owns(&self) -> bool {
self.ownership().owns
}
}
pub trait HasOwnershipAttributesMut: HasOwnershipAttributes {
fn ownership_mut(&mut self) -> &mut OwnershipAttributes;
fn set_owns(&mut self, owns: bool) {
self.ownership_mut().owns = owns;
}
}