pub trait Message {
fn id(&self) -> MessageId;
fn topic(&self, topic_token: &TopicToken) -> Cow<'_, str>;
fn data(&self) -> Cow<'_, [u8]>;
fn details(&self) -> &Details;
fn retrieve_topic(&self) -> Option<Cow<'_, str>> { ... }
}
pub trait Message {
fn id(&self) -> MessageId;
fn topic(&self, topic_token: &TopicToken) -> Cow<'_, str>;
fn data(&self) -> Cow<'_, [u8]>;
fn details(&self) -> &Details;
fn retrieve_topic(&self) -> Option<Cow<'_, str>> { ... }
}