use crate::{
command::{self, Command},
object,
response::Response,
};
use serde::{Deserialize, Serialize};
#[derive(Serialize, Deserialize, Debug)]
pub(crate) struct PutTemplateCommand {
pub params: object::put::Params,
pub data: Vec<u8>,
}
impl Command for PutTemplateCommand {
type ResponseType = PutTemplateResponse;
}
#[derive(Serialize, Deserialize, Debug)]
pub(crate) struct PutTemplateResponse {
pub object_id: object::Id,
}
impl Response for PutTemplateResponse {
const COMMAND_CODE: command::Code = command::Code::PutTemplate;
}