Skip to main content

set_path

Function set_path 

Source
pub fn set_path(path: &str, value: CborValue) -> CborValue
Expand description

Build a nested CborValue map from a dot-path and a value. e.g., set_path(“input.sentiment”, val) → Map { “input”: Map { “sentiment”: val } } Empty path returns the value itself.