ockam_identity 0.134.0

Ockam is a library for building devices that communicate securely, privately and trustfully with cloud services and other devices.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use minicbor::{CborLen, Decode, Encode};
use ockam_core::compat::vec::Vec;

/// Binary and a version
#[derive(Clone, Debug, PartialEq, Eq, Encode, Decode, CborLen)]
#[rustfmt::skip]
pub struct VersionedData {
    /// Version
    #[n(0)] pub version: u8,
    /// Numeric tag of type that was serialized into data field
    #[n(1)] pub data_type: u8,
    /// Binary
    #[cbor(with = "minicbor::bytes")]
    #[n(2)] pub data: Vec<u8>,
}