use super::put_object::PutObjectParams;
use crate::authentication_key::AuthenticationKey;
use crate::capability::Capability;
use crate::command::{Command, CommandCode};
use crate::object::ObjectId;
use crate::response::Response;
#[derive(Serialize, Deserialize, Debug)]
pub(crate) struct PutAuthenticationKeyCommand {
pub params: PutObjectParams,
pub delegated_capabilities: Capability,
pub authentication_key: AuthenticationKey,
}
impl Command for PutAuthenticationKeyCommand {
type ResponseType = PutAuthenticationKeyResponse;
}
#[derive(Serialize, Deserialize, Debug)]
pub(crate) struct PutAuthenticationKeyResponse {
pub key_id: ObjectId,
}
impl Response for PutAuthenticationKeyResponse {
const COMMAND_CODE: CommandCode = CommandCode::PutAuthenticationKey;
}