use super::put_object::PutObjectParams;
use crate::command::{Command, CommandCode};
use crate::object::ObjectId;
use crate::response::Response;
#[derive(Serialize, Deserialize, Debug)]
pub(crate) struct PutOpaqueCommand {
pub params: PutObjectParams,
pub data: Vec<u8>,
}
impl Command for PutOpaqueCommand {
type ResponseType = PutOpaqueResponse;
}
#[derive(Serialize, Deserialize, Debug)]
pub(crate) struct PutOpaqueResponse {
pub object_id: ObjectId,
}
impl Response for PutOpaqueResponse {
const COMMAND_CODE: CommandCode = CommandCode::PutOpaqueObject;
}