dochy_intf 0.10.1

Generates the source code to access Dochy Data
1
2
3
4
5
6
7
8
9
10
use dochy_core::structs::VarType;

pub(crate) fn into_qv(name : &str, var_type : VarType) -> String{
    if var_type == VarType::Normal {
        format!("Qv::Val({})", name)
    } else {
        format!("{}.into_qv()", name)
    }
}