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 PutOTPAEADKeyCommand {
pub params: PutObjectParams,
pub data: Vec<u8>,
}
impl Command for PutOTPAEADKeyCommand {
type ResponseType = PutOTPAEADKeyResponse;
}
#[derive(Serialize, Deserialize, Debug)]
pub(crate) struct PutOTPAEADKeyResponse {
pub key_id: ObjectId,
}
impl Response for PutOTPAEADKeyResponse {
const COMMAND_CODE: CommandCode = CommandCode::PutOtpAead;
}