Atproto, add getters to StrongRef

This commit is contained in:
Julia Lange 2025-06-17 13:54:55 -07:00
parent 0573e1aa43
commit 1d1f8ae60f
Signed by: Julia
SSH key fingerprint: SHA256:5DJcfxa5/fKCYn57dcabJa2vN2e6eT0pBerYi5SUbto

View file

@ -68,3 +68,12 @@ pub struct StrongRef<T> {
content: T,
cid: Cid,
}
impl<T> StrongRef<T> {
pub fn get_content(&self) -> &T {
&self.content
}
pub fn get_cid(&self) -> &Cid {
&self.cid
}
}