use super::put_object::PutObjectParams;
use crate::command::{Command, CommandCode};
use crate::object::ObjectId;
use crate::response::Response;
#[derive(Serialize, Deserialize, Debug)]
pub(crate) struct PutAsymmetricKeyCommand {
pub params: PutObjectParams,
pub data: Vec<u8>,
}
impl Command for PutAsymmetricKeyCommand {
type ResponseType = PutAsymmetricKeyResponse;
}
#[derive(Serialize, Deserialize, Debug)]
pub(crate) struct PutAsymmetricKeyResponse {
pub key_id: ObjectId,
}
impl Response for PutAsymmetricKeyResponse {
const COMMAND_CODE: CommandCode = CommandCode::PutAsymmetricKey;
}