Atproto, add getters to StrongRef
This commit is contained in:
parent
0573e1aa43
commit
1d1f8ae60f
1 changed files with 9 additions and 0 deletions
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue