pub struct Template {
pub id: String,
pub name: String,
pub description: String,
pub version: String,
pub logo: Option<String>,
pub tags: Vec<String>,
pub links: BTreeMap<String, String>,
pub variables: Vec<Variable>,
pub apps: Vec<AppTemplate>,
pub main: Option<String>,
pub notes: Vec<String>,
}Expand description
A template, as written in YAML (docs/guides/templates.md).
Fields§
§id: String[a-z0-9-], unique in its catalog.
name: String§description: String§version: StringThe template’s own version (usually the app’s).
logo: Option<String>A logo URL.
links: BTreeMap<String, String>website, docs, source, … to URLs.
variables: Vec<Variable>§apps: Vec<AppTemplate>§main: Option<String>The app named after the instance (default: the only app).
notes: Vec<String>What to know after deploying (first-run steps, default logins).
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Template
impl<'de> Deserialize<'de> for Template
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
impl StructuralPartialEq for Template
Auto Trait Implementations§
impl Freeze for Template
impl RefUnwindSafe for Template
impl Send for Template
impl Sync for Template
impl Unpin for Template
impl UnsafeUnpin for Template
impl UnwindSafe for Template
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