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§
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
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.