pub struct TemplateDefinition {
pub title: String,
pub description: String,
pub path: Option<String>,
pub use_cases: Vec<String>,
pub tags: Vec<String>,
pub live_demo: Option<String>,
pub template: Option<String>,
pub author: Option<String>,
pub repo: Option<String>,
}
Fields§
§title: String
Title of the template
description: String
A short description of the template
path: Option<String>
Path relative to the repo root
use_cases: Vec<String>
List of areas where this template is useful. Examples: “Web app”, “Discord bot”, “Monitoring”, “Automation”, “Utility”
List of keywords that describe the template. Examples: “axum”, “serenity”, “typescript”, “saas”, “fullstack”, “database”
live_demo: Option<String>
URL to a live instance of the template (if relevant)
template: Option<String>
If this template is available in the shuttle init --template
short-hand options, add that name here
GitHub username of the author of the community template
repo: Option<String>
URL to the repo of the community template
Trait Implementations§
Source§impl Debug for TemplateDefinition
impl Debug for TemplateDefinition
Source§impl Default for TemplateDefinition
impl Default for TemplateDefinition
Source§fn default() -> TemplateDefinition
fn default() -> TemplateDefinition
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TemplateDefinition
impl<'de> Deserialize<'de> for TemplateDefinition
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for TemplateDefinition
impl RefUnwindSafe for TemplateDefinition
impl Send for TemplateDefinition
impl Sync for TemplateDefinition
impl Unpin for TemplateDefinition
impl UnwindSafe for TemplateDefinition
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more