Use {name}::ty as a type. {source_code} Example fn get(input: {name}::ty) -> {name}::ty {{ let field: {name}::ty = input; input }}