codama-nodes 0.10.0

Node specifications and helpers for the Codama standard
Documentation
1
2
3
4
5
6
7
8
9
10
11
use serde::{Deserialize, Serialize};

/// The byte order of a numeric serialization.
#[derive(Debug, PartialEq, Eq, Clone, Copy, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub enum Endianness {
    /// Big-endian: the most significant byte is written first.
    Be,
    /// Little-endian: the least significant byte is written first.
    Le,
}