glepack/data
This module contains the data types used in MessagePack encoding and decoding
Types
Represents a MessagePack value
pub type Value {
Nil
Boolean(Bool)
Integer(Int)
Float(Float)
String(String)
Binary(BitArray)
Array(List(Value))
Map(Dict(Value, Value))
Extension(Int, BitArray)
}
Constructors
-
Nil
Represents the nil value
-
Boolean(Bool)
Represents a boolean value
-
Integer(Int)
Represents an integer value
-
Float(Float)
Represents a floating-point value
-
String(String)
Represents a UTF-8 string
-
Binary(BitArray)
Represents binary data
-
Array(List(Value))
Represents an array of values
-
Map(Dict(Value, Value))
Represents a map of key-value pairs
-
Extension(Int, BitArray)
Represents an extension value with a type ID and data