dochy_intf 0.10.1

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

pub(crate) fn with_var(t : &str, vt : VarType) -> String{
    match vt{
        VarType::Normal => t.to_string(),
        VarType::Nullable => format!("NullOr<{}>", t),
        VarType::Undefiable => format!("UndefOr<{}>", t),
        VarType::UndefNullable => format!("Qv<{}>", t),
    }
}