Support container output format
This commit is contained in:
1 parent
aeefe566b7
commit
e7613d6864
6 files changed
+28
-19
No files matched your search
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user