use super::put_object::PutObjectParams;
use crate::command::{Command, CommandCode};
use crate::object::ObjectId;
use crate::response::Response;
pub const HMAC_MIN_KEY_SIZE: usize = 8;
#[derive(Serialize, Deserialize, Debug)]
pub(crate) struct PutHMACKeyCommand {
pub params: PutObjectParams,
pub hmac_key: Vec<u8>,
}
impl Command for PutHMACKeyCommand {
type ResponseType = PutHMACKeyResponse;
}
#[derive(Serialize, Deserialize, Debug)]
pub(crate) struct PutHMACKeyResponse {
pub key_id: ObjectId,
}
impl Response for PutHMACKeyResponse {
const COMMAND_CODE: CommandCode = CommandCode::PutHmacKey;
}