@@ -5,36 +5,36 @@ use serde::{Deserialize, Serialize};
55/// Schema used in `examples/templates.toml` and services that parses it
66#[ derive( Debug , Serialize , Deserialize ) ]
77pub struct TemplatesSchema {
8- templates : HashMap < String , TemplateDefinition > ,
8+ pub templates : HashMap < String , TemplateDefinition > ,
99}
1010
1111#[ derive( Debug , Default , Serialize , Deserialize ) ]
1212pub struct TemplateDefinition {
1313 /// Title of the template
14- title : String ,
14+ pub title : String ,
1515 /// A short description of the template
16- description : Option < String > ,
16+ pub description : Option < String > ,
1717 /// Path relative to the repo root
18- path : Option < String > ,
18+ pub path : Option < String > ,
1919 /// "starter" OR "template" (default) OR "tutorial"
2020 #[ serde( default ) ]
21- r#type : TemplateType ,
21+ pub r#type : TemplateType ,
2222 /// List of areas where this template is useful. Examples: "Web app", "Discord bot", "Monitoring", "Automation", "Utility"
23- use_cases : Vec < String > ,
23+ pub use_cases : Vec < String > ,
2424 /// List of keywords that describe the template. Examples: "axum", "serenity", "typescript", "saas", "fullstack", "database"
25- tags : Vec < String > ,
25+ pub tags : Vec < String > ,
2626 /// URL to a live instance of the template (if relevant)
27- live_demo : Option < String > ,
27+ pub live_demo : Option < String > ,
2828
2929 /// If this template is available in the `cargo shuttle init --template` short-hand options, add that name here
30- template : Option < String > ,
30+ pub template : Option < String > ,
3131
3232 /// Set this to true if this is a community template outside of the shuttle-examples repo
33- community : Option < bool > ,
33+ pub community : Option < bool > ,
3434 /// GitHub username of the author of the community template
35- author : Option < String > ,
35+ pub author : Option < String > ,
3636 /// URL to the repo of the community template
37- repo : Option < String > ,
37+ pub repo : Option < String > ,
3838}
3939
4040#[ derive( Debug , Default , Serialize , Deserialize ) ]
0 commit comments