mirror of
https://github.com/LemmyNet/activitypub-federation-rust
synced 2024-11-23 20:03:14 +00:00
feat: expose activity pub json wrapped value (#22)
This commit is contained in:
parent
6611debd6b
commit
3220b6b5ca
1 changed files with 4 additions and 0 deletions
|
@ -26,6 +26,10 @@ impl<T> WithContext<T> {
|
|||
pub fn new(inner: T, context: Vec<Value>) -> WithContext<T> {
|
||||
WithContext { context, inner }
|
||||
}
|
||||
|
||||
pub fn inner(&self) -> &T {
|
||||
&self.inner
|
||||
}
|
||||
}
|
||||
|
||||
#[async_trait::async_trait]
|
||||
|
|
Loading…
Reference in a new issue