use crate::command::{Command, CommandCode};
use crate::object::{ObjectId, ObjectType};
use crate::response::Response;
use crate::wrap::WrapNonce;
#[derive(Serialize, Deserialize, Debug)]
pub(crate) struct ImportWrappedCommand {
pub wrap_key_id: ObjectId,
pub nonce: WrapNonce,
pub ciphertext: Vec<u8>,
}
impl Command for ImportWrappedCommand {
type ResponseType = ImportWrappedResponse;
}
#[derive(Serialize, Deserialize, Debug)]
pub struct ImportWrappedResponse {
pub object_type: ObjectType,
pub object_id: ObjectId,
}
impl Response for ImportWrappedResponse {
const COMMAND_CODE: CommandCode = CommandCode::ImportWrapped;
}