pub enum LnmpValue {
Show 13 variants
Int(i64),
Float(f64),
Bool(bool),
String(String),
StringArray(Vec<String>),
IntArray(Vec<i64>),
FloatArray(Vec<f64>),
BoolArray(Vec<bool>),
NestedRecord(Box<LnmpRecord>),
NestedArray(Vec<LnmpRecord>),
Embedding(Vector),
EmbeddingDelta(VectorDelta),
QuantizedEmbedding(QuantizedVector),
}Expand description
LNMP value types supporting all primitives, arrays, and nested structures.
Variants§
Int(i64)
Integer value (i64)
Float(f64)
Floating-point value (f64)
Bool(bool)
Boolean value (true/false)
String(String)
String value
StringArray(Vec<String>)
Array of strings
IntArray(Vec<i64>)
Array of integers (v0.6)
FloatArray(Vec<f64>)
Array of floats (v0.6)
BoolArray(Vec<bool>)
Array of booleans (v0.6)
NestedRecord(Box<LnmpRecord>)
Nested record (v0.3)
NestedArray(Vec<LnmpRecord>)
Array of nested records (v0.3)
Embedding(Vector)
Vector Embedding (v0.5)
EmbeddingDelta(VectorDelta)
Delta update for embedding vector
QuantizedEmbedding(QuantizedVector)
Quantized embedding vector (v0.5.2)
Implementations§
Source§impl LnmpValue
impl LnmpValue
Sourcepub fn validate_structure(&self) -> Result<(), String>
pub fn validate_structure(&self) -> Result<(), String>
Validates the structural integrity of the value without imposing limits.
This uses an iterative walk to avoid deep-recursion stack overflows.
Sourcepub fn validate_with_max_depth(&self, max_depth: usize) -> Result<(), String>
pub fn validate_with_max_depth(&self, max_depth: usize) -> Result<(), String>
Validates structure while enforcing a maximum nesting depth.
Returns an error string if the structure contains invalid nested values
or if max_depth is exceeded.
Sourcepub fn validate_structure_recursive(&self) -> Result<(), String>
👎Deprecated: use validate_with_max_depth or validate_structure instead
pub fn validate_structure_recursive(&self) -> Result<(), String>
Validates the structural integrity of the value (deprecated name).