diff --git a/src/model/activity.rs b/src/model/activity.rs index ec10c923..3b48cef0 100644 --- a/src/model/activity.rs +++ b/src/model/activity.rs @@ -98,3 +98,13 @@ impl Related for Entity { } impl ActiveModelBehavior for ActiveModel {} + +impl apb::target::Addressed for Model { + fn addressed(&self) -> Vec { + let mut to : Vec = self.to.0.clone(); + to.append(&mut self.bto.0.clone()); + to.append(&mut self.cc.0.clone()); + to.append(&mut self.bcc.0.clone()); + to + } +} diff --git a/src/model/object.rs b/src/model/object.rs index a08b2ce1..0a6a6d42 100644 --- a/src/model/object.rs +++ b/src/model/object.rs @@ -152,3 +152,13 @@ impl Related for Entity { } impl ActiveModelBehavior for ActiveModel {} + +impl apb::target::Addressed for Model { + fn addressed(&self) -> Vec { + let mut to : Vec = self.to.0.clone(); + to.append(&mut self.bto.0.clone()); + to.append(&mut self.cc.0.clone()); + to.append(&mut self.bcc.0.clone()); + to + } +}