MsgObject

Trait MsgObject 

Source
pub trait MsgObject {
    // Required methods
    fn to(&self) -> &ObjectId;
    fn create(owner: PeopleId, to: ObjectId, content: MsgContent) -> Self;
    fn content(&self) -> &MsgContent;
    fn id(&self) -> MsgId;
    fn belongs(&self, id: &ObjectId) -> bool;
}

Required Methods§

Source

fn to(&self) -> &ObjectId

Source

fn create(owner: PeopleId, to: ObjectId, content: MsgContent) -> Self

Source

fn content(&self) -> &MsgContent

Source

fn id(&self) -> MsgId

Source

fn belongs(&self, id: &ObjectId) -> bool

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§