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