feat(config): basis for simplified value setting

Previously we would set static structures manully, using complex cases
and utility functions. Now we setup the foundation to allow setting
a generic `json::value::Value` instead, which can later be deserialized
into the target structure.

Related to #111
This commit is contained in:
Sebastian Thiel
2015-05-12 11:05:59 +02:00
parent a66f1ad728
commit a2dd71451d
3 changed files with 28 additions and 81 deletions

View File

@@ -199,6 +199,10 @@ impl FieldCursor {
}
}
pub fn set_json_value(&self, object: &mut json::value::Value, value: &str, value_type: &str) {
}
pub fn num_fields(&self) -> usize {
self.0.len()
}