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