postchain_client::encoding::gtv

Function encode_value

Source
pub fn encode_value(value: &Params) -> Vec<u8>
Expand description

Encodes a single GTV value into a byte vector

§Arguments

  • value - The value to encode

§Returns

  • Vec<u8> - The encoded value as a byte vector