pub trait IMessage { fn timestamp(&self) -> Timestamp; fn stdout<T: ToString>(&self, data: T) -> String { ... } }
Message as a trait