use super::generate_key::GenerateKeyParams;
use crate::command::{Command, CommandCode};
use crate::object::ObjectId;
use crate::response::Response;
#[derive(Serialize, Deserialize, Debug)]
pub(crate) struct GenHMACKeyCommand(pub(crate) GenerateKeyParams);
impl Command for GenHMACKeyCommand {
type ResponseType = GenHMACKeyResponse;
}
#[derive(Serialize, Deserialize, Debug)]
pub(crate) struct GenHMACKeyResponse {
pub key_id: ObjectId,
}
impl Response for GenHMACKeyResponse {
const COMMAND_CODE: CommandCode = CommandCode::GenerateHmacKey;
}