Support container output format

This commit is contained in:
Dominik Werder
2024-12-04 12:15:51 +01:00
parent aeefe566b7
commit e7613d6864
6 changed files with 28 additions and 19 deletions

View File

@@ -181,6 +181,12 @@ pub struct ToJsonBody {
body: Vec<u8>,
}
impl From<Vec<u8>> for ToJsonBody {
fn from(value: Vec<u8>) -> Self {
Self { body: value }
}
}
impl<S: Serialize> From<&S> for ToJsonBody {
fn from(value: &S) -> Self {
Self {