From 8b15ae9f4f28795084c732d271a03277f048b27f Mon Sep 17 00:00:00 2001 From: alemi Date: Sun, 19 May 2024 21:19:22 +0200 Subject: [PATCH] feat(apb): Addressed auto impl for any Object --- apb/src/target.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/apb/src/target.rs b/apb/src/target.rs index 3b9aff3..5610886 100644 --- a/apb/src/target.rs +++ b/apb/src/target.rs @@ -6,8 +6,7 @@ pub trait Addressed { fn addressed(&self) -> Vec; } -#[cfg(feature = "unstructured")] -impl Addressed for serde_json::Value { +impl Addressed for T { fn addressed(&self) -> Vec { let mut to : Vec = self.to().map(|x| x.href().to_string()).collect(); to.append(&mut self.bto().map(|x| x.href().to_string()).collect());