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
12
13
14
15
use serde::{Deserialize, Serialize};

/// How a string of bytes is encoded for transport.
#[derive(Debug, PartialEq, Eq, Clone, Copy, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub enum BytesEncoding {
    /// Hexadecimal encoding (two characters per byte).
    Base16,
    /// Base58 encoding, the standard for Solana addresses.
    Base58,
    /// Base64 encoding (RFC 4648).
    Base64,
    /// UTF-8 text encoding.
    Utf8,
}