pub struct BashTemplate {
pub template: String,
pub vars: HashMap<String, String>,
}Expand description
A simple bash template with variable substitution.
Fields§
§template: StringTemplate text with {{VAR}} placeholders.
vars: HashMap<String, String>Variable substitutions.
Implementations§
Source§impl BashTemplate
impl BashTemplate
Sourcepub fn emit_bash_render(&self) -> String
pub fn emit_bash_render(&self) -> String
Emit bash code that performs the substitution at runtime.
Trait Implementations§
Source§impl Clone for BashTemplate
impl Clone for BashTemplate
Source§fn clone(&self) -> BashTemplate
fn clone(&self) -> BashTemplate
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 moreAuto Trait Implementations§
impl Freeze for BashTemplate
impl RefUnwindSafe for BashTemplate
impl Send for BashTemplate
impl Sync for BashTemplate
impl Unpin for BashTemplate
impl UnsafeUnpin for BashTemplate
impl UnwindSafe for BashTemplate
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