yubihsm 0.20.0

Pure Rust client for YubiHSM2 devices with support for HTTP and USB-based access to the device. Supports most HSM functionality including ECDSA, Ed25519, HMAC, and RSA.
Documentation
//! Reset the device: clear all stored objects, restore the default auth key,
//! and reboot
//!
//! <https://developers.yubico.com/YubiHSM2/Commands/Reset_Device.html>

use crate::command::{Command, CommandCode};
use crate::response::Response;

/// Request parameters for `command::reset_device`
#[derive(Serialize, Deserialize, Debug)]
pub(crate) struct ResetDeviceCommand {}

impl Command for ResetDeviceCommand {
    type ResponseType = ResetDeviceResponse;
}

/// Response from `command::reset_device`
#[derive(Serialize, Deserialize, Debug)]
pub struct ResetDeviceResponse(pub(crate) u8);

impl Response for ResetDeviceResponse {
    const COMMAND_CODE: CommandCode = CommandCode::ResetDevice;
}