pub fn encode<T>(file_name: &str, t: &T) -> Result<String, Error>where T: Encode + Debug,
Encode Rust object and print it into KDL text