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