MCPcopy Create free account
hub / github.com/Wulf/create-rust-app / config

Function config

crates/create-rust-app_cli/src/content/model.rs:32–42  ·  view source on GitHub ↗
(resource_name: &str)

Source from the content-addressed store, hash-verified

30
31#[allow(dead_code)]
32fn config(resource_name: &str) -> ModelConfig {
33 let model_name = resource_name.to_pascal_case();
34 let file_name = model_name.to_snake_case();
35 let table_name = model_name.to_table_case();
36
37 ModelConfig {
38 model_name,
39 table_name,
40 file_name,
41 }
42}
43
44#[allow(dead_code)]
45fn generate(resource_name: &str) -> Model {

Callers 1

generateFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected