use crate::{
capability::Capability,
command::{self, Command},
object::{self, generate},
response::Response,
};
use serde::{Deserialize, Serialize};
#[derive(Serialize, Deserialize, Debug)]
pub(crate) struct GenWrapKeyCommand {
pub params: generate::Params,
pub delegated_capabilities: Capability,
}
impl Command for GenWrapKeyCommand {
type ResponseType = GenWrapKeyResponse;
}
#[derive(Serialize, Deserialize, Debug)]
pub(crate) struct GenWrapKeyResponse {
pub key_id: object::Id,
}
impl Response for GenWrapKeyResponse {
const COMMAND_CODE: command::Code = command::Code::GenerateWrapKey;
}