use crate::{
command::{self, Command},
object,
response::Response,
};
use serde::{Deserialize, Serialize};
#[derive(Serialize, Deserialize, Debug)]
pub(crate) struct GetTemplateCommand {
pub object_id: object::Id,
}
impl Command for GetTemplateCommand {
type ResponseType = GetTemplateResponse;
}
#[derive(Serialize, Deserialize, Debug)]
pub(crate) struct GetTemplateResponse(pub(crate) Vec<u8>);
impl Response for GetTemplateResponse {
const COMMAND_CODE: command::Code = command::Code::GetTemplate;
}