pub struct ResolvedExtraFile {
pub path: PathBuf,
pub name_template: Option<String>,
}Expand description
One resolved extra_files entry.
name_template is the raw, unrendered template string from the user’s
config (e.g. "{{ .ProjectName }}.txt"). Callers render it with their own
TemplateVars so they can inject per-site variables (e.g. stage-blob sets
a Filename var so users can write "renamed-{{ .Filename }}").
Fields§
§path: PathBuf§name_template: Option<String>Trait Implementations§
Source§impl Clone for ResolvedExtraFile
impl Clone for ResolvedExtraFile
Source§fn clone(&self) -> ResolvedExtraFile
fn clone(&self) -> ResolvedExtraFile
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ResolvedExtraFile
impl RefUnwindSafe for ResolvedExtraFile
impl Send for ResolvedExtraFile
impl Sync for ResolvedExtraFile
impl Unpin for ResolvedExtraFile
impl UnsafeUnpin for ResolvedExtraFile
impl UnwindSafe for ResolvedExtraFile
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