use super::generate_key::GenerateKeyParams;
use crate::capability::Capability;
use crate::command::{Command, CommandCode};
use crate::object::ObjectId;
use crate::response::Response;
#[derive(Serialize, Deserialize, Debug)]
pub(crate) struct GenWrapKeyCommand {
pub params: GenerateKeyParams,
pub delegated_capabilities: Capability,
}
impl Command for GenWrapKeyCommand {
type ResponseType = GenWrapKeyResponse;
}
#[derive(Serialize, Deserialize, Debug)]
pub(crate) struct GenWrapKeyResponse {
pub key_id: ObjectId,
}
impl Response for GenWrapKeyResponse {
const COMMAND_CODE: CommandCode = CommandCode::GenerateWrapKey;
}