yubihsm 0.41.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
//! Response body types.

/// Response body
#[derive(Debug)]
pub struct Body(pub(super) Vec<u8>);

impl Body {
    /// Buffer the response body into a `Vec<u8>` and return it
    pub fn into_vec(self) -> Vec<u8> {
        self.0
    }
}

impl From<Body> for Vec<u8> {
    fn from(body: Body) -> Vec<u8> {
        body.into_vec()
    }
}