use crate::{
command::{self, Command},
object,
response::Response,
};
use serde::{Deserialize, Serialize};
pub const HMAC_MIN_KEY_SIZE: usize = 8;
#[derive(Serialize, Deserialize, Debug)]
pub(crate) struct PutHmacKeyCommand {
pub params: object::put::Params,
pub hmac_key: Vec<u8>,
}
impl Command for PutHmacKeyCommand {
type ResponseType = PutHmacKeyResponse;
}
#[derive(Serialize, Deserialize, Debug)]
pub(crate) struct PutHmacKeyResponse {
pub key_id: object::Id,
}
impl Response for PutHmacKeyResponse {
const COMMAND_CODE: command::Code = command::Code::PutHmacKey;
}