From 1d1f8ae60ff53d5e08351ba1cd576934ba97f060 Mon Sep 17 00:00:00 2001 From: Julia Lange Date: Tue, 17 Jun 2025 13:54:55 -0700 Subject: [PATCH] Atproto, add getters to StrongRef --- atproto/src/types.rs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/atproto/src/types.rs b/atproto/src/types.rs index ca30ded..70241b8 100644 --- a/atproto/src/types.rs +++ b/atproto/src/types.rs @@ -68,3 +68,12 @@ pub struct StrongRef { content: T, cid: Cid, } + +impl StrongRef { + pub fn get_content(&self) -> &T { + &self.content + } + pub fn get_cid(&self) -> &Cid { + &self.cid + } +}