diff --git a/lib/src/api/opt/resource.rs b/lib/src/api/opt/resource.rs index f9875cb8..aefb9b0b 100644 --- a/lib/src/api/opt/resource.rs +++ b/lib/src/api/opt/resource.rs @@ -144,6 +144,12 @@ impl IntoResource> for Thing { } } +impl IntoResource> for &Thing { + fn into_resource(self) -> Result { + Ok(Resource::RecordId(self.clone())) + } +} + impl IntoResource> for (T, I) where T: Into,