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 { ... }
}

Required Methods§

source

fn obj_flags(&self) -> u16

source

fn desc(&self) -> &O::DescType

source

fn desc_mut(&mut self) -> &mut O::DescType

source

fn body(&self) -> &Option<ObjectMutBody<O::ContentType, O>>

source

fn body_mut(&mut self) -> &mut Option<ObjectMutBody<O::ContentType, O>>

source

fn signs(&self) -> &ObjectSigns

source

fn signs_mut(&mut self) -> &mut ObjectSigns

source

fn nonce(&self) -> &Option<u128>

Provided Methods§

source

fn body_expect(&self, msg: &str) -> &ObjectMutBody<O::ContentType, O>

source

fn body_mut_expect( &mut self, msg: &str ) -> &mut ObjectMutBody<O::ContentType, O>

source

fn latest_update_time(&self) -> u64

Implementors§