pub enum SchemaValue {
U64(u64),
I64(i64),
F64(f64),
String(String),
Bool(bool),
Null,
Array(Vec<SchemaValue>),
}Expand description
Schema value representing a single data element
Values map directly to JSON types and are encoded using type-specific binary representations (varint for integers, IEEE 754 for floats, etc.).
§Binary Encoding
U64- Varint (variable-length)I64- Zigzag varint (converts negatives to small positives)F64- 8 bytes IEEE 754 little-endianString- Varint length + UTF-8 bytesBool- Single bit (packed 8 per byte)Null- Zero bytes (tracked in null bitmap)Array- Varint count + elements
Variants§
Implementations§
Source§impl SchemaValue
impl SchemaValue
Trait Implementations§
Source§impl Clone for SchemaValue
impl Clone for SchemaValue
Source§fn clone(&self) -> SchemaValue
fn clone(&self) -> SchemaValue
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SchemaValue
impl Debug for SchemaValue
Source§impl PartialEq for SchemaValue
impl PartialEq for SchemaValue
impl StructuralPartialEq for SchemaValue
Auto Trait Implementations§
impl Freeze for SchemaValue
impl RefUnwindSafe for SchemaValue
impl Send for SchemaValue
impl Sync for SchemaValue
impl Unpin for SchemaValue
impl UnwindSafe for SchemaValue
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more