NamedObject

Trait NamedObject 

Source
pub trait NamedObject<O>{
    // 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§