use crate::{
command::{self, Command},
object::{self, generate},
response::Response,
};
use serde::{Deserialize, Serialize};
#[derive(Serialize, Deserialize, Debug)]
pub(crate) struct GenHmacKeyCommand(pub(crate) generate::Params);
impl Command for GenHmacKeyCommand {
type ResponseType = GenHmacKeyResponse;
}
#[derive(Serialize, Deserialize, Debug)]
pub(crate) struct GenHmacKeyResponse {
pub key_id: object::Id,
}
impl Response for GenHmacKeyResponse {
const COMMAND_CODE: command::Code = command::Code::GenerateHmacKey;
}