Skip to main content

decode_generated_field

Function decode_generated_field 

Source
pub fn decode_generated_field<T: GeneratedValue>(
    field: &str,
    state: &FieldState<TypedValue>,
    expected: &DataTypeDescriptor,
) -> Result<FieldValue<T>, RecordError>
Expand description

Decode one canonical dynamic field into a generated Rust field while preserving omitted/NULL/clean state exactly.