use super::put_object::PutObjectParams;
use crate::capability::Capability;
use crate::command::{Command, CommandCode};
use crate::object::ObjectId;
use crate::response::Response;
#[derive(Serialize, Deserialize, Debug)]
pub(crate) struct PutWrapKeyCommand {
pub params: PutObjectParams,
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: ObjectId,
}
impl Response for PutWrapKeyResponse {
const COMMAND_CODE: CommandCode = CommandCode::PutWrapKey;
}