pub struct TemplateConfig {
    pub name: String,
    pub description: String,
    pub version: String,
    pub variables: Vec<TemplateVariable>,
    pub features: Vec<Feature>,
    pub hooks: Option<Hooks>,
    pub min_anvil_version: String,
    pub services: Vec<ServiceDefinition>,
    pub composition: Option<CompositionConfig>,
    pub service_combinations: Vec<ServiceCombination>,
}Fields§
§name: String§description: String§version: String§variables: Vec<TemplateVariable>§features: Vec<Feature>§hooks: Option<Hooks>§min_anvil_version: String§services: Vec<ServiceDefinition>§composition: Option<CompositionConfig>§service_combinations: Vec<ServiceCombination>Implementations§
Source§impl TemplateConfig
 
impl TemplateConfig
pub async fn from_file(path: &Path) -> EngineResult<Self>
pub fn validate(&self) -> EngineResult<()>
pub fn get_variable(&self, name: &str) -> Option<&TemplateVariable>
pub fn get_feature(&self, name: &str) -> Option<&Feature>
Trait Implementations§
Source§impl Clone for TemplateConfig
 
impl Clone for TemplateConfig
Source§fn clone(&self) -> TemplateConfig
 
fn clone(&self) -> TemplateConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from 
source. Read moreSource§impl Debug for TemplateConfig
 
impl Debug for TemplateConfig
Source§impl<'de> Deserialize<'de> for TemplateConfig
 
impl<'de> Deserialize<'de> for TemplateConfig
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 TemplateConfig
impl RefUnwindSafe for TemplateConfig
impl Send for TemplateConfig
impl Sync for TemplateConfig
impl Unpin for TemplateConfig
impl UnwindSafe for TemplateConfig
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