use crate::{
command::{self, Command},
object,
response::Response,
};
use serde::{Deserialize, Serialize};
#[derive(Serialize, Deserialize, Debug)]
pub(crate) struct ListObjectsCommand(pub(crate) Vec<u8>);
impl Command for ListObjectsCommand {
type ResponseType = ListObjectsResponse;
}
#[derive(Serialize, Deserialize, Debug)]
pub(crate) struct ListObjectsResponse(pub(crate) Vec<object::Entry>);
impl Response for ListObjectsResponse {
const COMMAND_CODE: command::Code = command::Code::ListObjects;
}