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