feat: expose activity pub json wrapped value (#22)

This commit is contained in:
Paul Delafosse 2023-01-25 01:51:41 +01:00 committed by GitHub
parent 6611debd6b
commit 3220b6b5ca
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -26,6 +26,10 @@ impl<T> WithContext<T> {
pub fn new(inner: T, context: Vec<Value>) -> WithContext<T> { pub fn new(inner: T, context: Vec<Value>) -> WithContext<T> {
WithContext { context, inner } WithContext { context, inner }
} }
pub fn inner(&self) -> &T {
&self.inner
}
} }
#[async_trait::async_trait] #[async_trait::async_trait]