pub struct DeployTemplate { /* private fields */ }Expand description
Template for creating deploy files.
Includes terraform deploy options to GCP, and Hetzner, a Makefile for useful commands, and a key directory.
Trait Implementations§
Source§impl Debug for DeployTemplate
impl Debug for DeployTemplate
Source§impl Default for DeployTemplate
impl Default for DeployTemplate
Source§fn default() -> DeployTemplate
fn default() -> DeployTemplate
Returns the “default value” for a type. Read more
Source§impl Template<DeployTemplateFiles> for DeployTemplate
impl Template<DeployTemplateFiles> for DeployTemplate
Source§fn create_all(self, path: &Path) -> Result<(), Error>
fn create_all(self, path: &Path) -> Result<(), Error>
Creates all files in the template. Read more
Source§fn parameters(&self) -> &TemplateParameters
fn parameters(&self) -> &TemplateParameters
Returns all parameters used by the template.
Source§fn set_values(&mut self, values: TemplateValues)
fn set_values(&mut self, values: TemplateValues)
Sets values for provided parameters.
Source§fn get_values(&self) -> &TemplateValues
fn get_values(&self) -> &TemplateValues
Get all template values.
Source§fn get_values_mut(&mut self) -> &mut TemplateValues
fn get_values_mut(&mut self) -> &mut TemplateValues
Get all template values as a mutable reference.
Source§fn parameter_storage(&self) -> &Path
fn parameter_storage(&self) -> &Path
Relative path for parameter values storage.
Source§fn template_name(&self) -> &'static str
fn template_name(&self) -> &'static str
Source§fn load_existing_params(&mut self, path: &Path) -> Option<()>
fn load_existing_params(&mut self, path: &Path) -> Option<()>
Loads provided parameters from previous run.
Source§fn get_missing_mandatory(&self) -> Vec<&str>
fn get_missing_mandatory(&self) -> Vec<&str>
Fetches mandatory parameters that are not set yet.
Auto Trait Implementations§
impl Freeze for DeployTemplate
impl RefUnwindSafe for DeployTemplate
impl Send for DeployTemplate
impl Sync for DeployTemplate
impl Unpin for DeployTemplate
impl UnwindSafe for DeployTemplate
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
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<S> SetWithType for S
impl<S> SetWithType for S
Source§fn set_with_type<T, IntoT>(&mut self, component: IntoT)where
IntoT: Into<T>,
S: SetComponent<T, IntoT>,
fn set_with_type<T, IntoT>(&mut self, component: IntoT)where
IntoT: Into<T>,
S: SetComponent<T, IntoT>,
Function to set value of a component by its type.