over_there/core/msg/content/reply/
custom.rs1use schemars::JsonSchema;
2use serde::{Deserialize, Serialize};
3
4#[derive(
5 JsonSchema, Serialize, Deserialize, Default, Clone, Debug, PartialEq, Eq,
6)]
7pub struct CustomArgs {
8 pub data: Vec<u8>,
9}
10
11impl crate::core::SchemaInfo for CustomArgs {}
12
13impl From<Vec<u8>> for CustomArgs {
14 fn from(data: Vec<u8>) -> Self {
15 Self { data }
16 }
17}
18
19impl From<&[u8]> for CustomArgs {
20 fn from(data: &[u8]) -> Self {
21 Self::from(data.to_vec())
22 }
23}