utility fns

This commit is contained in:
Aiden McClelland
2021-05-10 15:40:46 -06:00
committed by Aiden McClelland
parent b74a54390e
commit 9ff57e33d3
8 changed files with 181 additions and 25 deletions

View File

@@ -247,7 +247,7 @@ fn build_model_struct(
}
impl #model_name {
#(
pub fn #child_fn_name(&self) -> #child_model {
pub fn #child_fn_name(self) -> #child_model {
self.0.child(#child_path).into()
}
)*