use crate::{
authentication,
capability::Capability,
command::{self, Command},
object,
response::Response,
};
use serde::{Deserialize, Serialize};
#[derive(Serialize, Deserialize, Debug)]
pub(crate) struct PutAuthenticationKeyCommand {
pub params: object::import::Params,
pub delegated_capabilities: Capability,
pub authentication_key: authentication::Key,
}
impl Command for PutAuthenticationKeyCommand {
type ResponseType = PutAuthenticationKeyResponse;
}
#[derive(Serialize, Deserialize, Debug)]
pub(crate) struct PutAuthenticationKeyResponse {
pub key_id: object::Id,
}
impl Response for PutAuthenticationKeyResponse {
const COMMAND_CODE: command::Code = command::Code::PutAuthenticationKey;
}