yubihsm 0.26.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::{self, Command},
    response::Response,
};
use serde::{Deserialize, Serialize};

/// 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: command::Code = command::Code::ResetDevice;
}