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