use crate::{
command::{self, Command},
object,
response::Response,
};
use serde::{Deserialize, Serialize};
#[derive(Serialize, Deserialize, Debug)]
pub(crate) struct GetObjectInfoCommand(pub(crate) object::Handle);
impl Command for GetObjectInfoCommand {
type ResponseType = GetObjectInfoResponse;
}
#[derive(Serialize, Deserialize, Debug)]
pub(crate) struct GetObjectInfoResponse(pub(crate) object::Info);
impl Response for GetObjectInfoResponse {
const COMMAND_CODE: command::Code = command::Code::GetObjectInfo;
}