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 GenAsymmetricKeyCommand(pub(crate) GenerateKeyParams);
impl Command for GenAsymmetricKeyCommand {
type ResponseType = GenAsymmetricKeyResponse;
}
#[derive(Serialize, Deserialize, Debug)]
pub(crate) struct GenAsymmetricKeyResponse {
pub key_id: ObjectId,
}
impl Response for GenAsymmetricKeyResponse {
const COMMAND_CODE: CommandCode = CommandCode::GenerateAsymmetricKey;
}