feat: impl Addressed on object and activity models
This commit is contained in:
parent
eb472517ab
commit
01c02c5258
2 changed files with 20 additions and 0 deletions
|
@ -98,3 +98,13 @@ impl Related<super::addressing::Entity> for Entity {
|
|||
}
|
||||
|
||||
impl ActiveModelBehavior for ActiveModel {}
|
||||
|
||||
impl apb::target::Addressed for Model {
|
||||
fn addressed(&self) -> Vec<String> {
|
||||
let mut to : Vec<String> = 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
|
||||
}
|
||||
}
|
||||
|
|
|
@ -152,3 +152,13 @@ impl Related<super::share::Entity> for Entity {
|
|||
}
|
||||
|
||||
impl ActiveModelBehavior for ActiveModel {}
|
||||
|
||||
impl apb::target::Addressed for Model {
|
||||
fn addressed(&self) -> Vec<String> {
|
||||
let mut to : Vec<String> = 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
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue