diff --git a/atproto/src/types.rs b/atproto/src/types.rs index 70241b8..26ee60d 100644 --- a/atproto/src/types.rs +++ b/atproto/src/types.rs @@ -73,6 +73,11 @@ impl StrongRef { pub fn get_content(&self) -> &T { &self.content } + + pub fn extract_content(self) -> (T, Cid) { + (self.content, self.cid) + } + pub fn get_cid(&self) -> &Cid { &self.cid }