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.
//! Information about device storage
useserde::{Deserialize, Serialize};/// Response from the [Get Storage Info] command.
////// [Get Storage Info]: https://developers.yubico.com/YubiHSM2/Commands/Get_Storage_Info.html
#[derive(Clone, Debug, Deserialize, Serialize)]pubstructInfo{/// Total number of storage records
pubtotal_records:u16,
/// Storage records which are currently free
pubfree_records:u16,
/// Total number of storage pages
pubtotal_pages:u16,
/// Storage pages which are currently free
pubfree_pages:u16,
/// Page size in bytes
pubpage_size:u16,
}