pub trait NamedObject<O>where
O: ObjectType,
O::ContentType: BodyContent,{
// Required methods
fn obj_flags(&self) -> u16;
fn desc(&self) -> &O::DescType;
fn desc_mut(&mut self) -> &mut O::DescType;
fn body(&self) -> &Option<ObjectMutBody<O::ContentType, O>>;
fn body_mut(&mut self) -> &mut Option<ObjectMutBody<O::ContentType, O>>;
fn signs(&self) -> &ObjectSigns;
fn signs_mut(&mut self) -> &mut ObjectSigns;
fn nonce(&self) -> &Option<u128>;
// Provided methods
fn body_expect(&self, msg: &str) -> &ObjectMutBody<O::ContentType, O> { ... }
fn body_mut_expect(
&mut self,
msg: &str
) -> &mut ObjectMutBody<O::ContentType, O> { ... }
fn latest_update_time(&self) -> u64 { ... }
}