use crate::Object; pub const PUBLIC : &str = "https://www.w3.org/ns/activitystreams#Public"; pub trait Addressed { fn addressed(&self) -> Vec; } impl Addressed for T { fn addressed(&self) -> Vec { let mut to : Vec = self.to().ids(); to.append(&mut self.bto().ids()); to.append(&mut self.cc().ids()); to.append(&mut self.bcc().ids()); to } }