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