pub struct TemplatesSchema {
pub version: u32,
pub logos: HashMap<String, String>,
pub starters: HashMap<String, TemplateDefinition>,
pub templates: HashMap<String, TemplateDefinition>,
pub examples: HashMap<String, TemplateDefinition>,
pub tutorials: HashMap<String, TemplateDefinition>,
pub community_templates: HashMap<String, TemplateDefinition>,
}
Expand description
Schema used in examples/templates.toml
and services that parse it
Fields§
§version: u32
Version of this schema
logos: HashMap<String, String>
Mapping of tag names to logo URLs
starters: HashMap<String, TemplateDefinition>
Very basic templates, typically Hello World
templates: HashMap<String, TemplateDefinition>
Non-starter templates
examples: HashMap<String, TemplateDefinition>
Examples not meant to be templates
tutorials: HashMap<String, TemplateDefinition>
Examples with attached tutorials
community_templates: HashMap<String, TemplateDefinition>
Templates made by community members
Trait Implementations§
Source§impl Debug for TemplatesSchema
impl Debug for TemplatesSchema
Source§impl<'de> Deserialize<'de> for TemplatesSchema
impl<'de> Deserialize<'de> for TemplatesSchema
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 TemplatesSchema
impl RefUnwindSafe for TemplatesSchema
impl Send for TemplatesSchema
impl Sync for TemplatesSchema
impl Unpin for TemplatesSchema
impl UnwindSafe for TemplatesSchema
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