Atproto, add extraction of values from StrongRef

This commit is contained in:
Julia Lange 2025-06-17 14:38:23 -07:00
parent 8160b161f5
commit 2fa7590271
Signed by: Julia
SSH key fingerprint: SHA256:5DJcfxa5/fKCYn57dcabJa2vN2e6eT0pBerYi5SUbto

View file

@ -73,6 +73,11 @@ impl<T> StrongRef<T> {
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
}