Struct wix::print::RenderOutput
source · pub struct RenderOutput {
pub path: Option<PathBuf>,
pub rendered: String,
}
Expand description
The result of rendering a template (main.wxs, License.rtf, …)
Fields§
§path: Option<PathBuf>
The path the template should be written to (we needed to know this at generation time to properly embed relative paths)
If this is None then the template should be written to stdout FIMXE: this is kinda busted! You still need to know relative paths!
rendered: String
The contents of the file
Implementations§
source§impl RenderOutput
impl RenderOutput
sourcepub fn write(&self) -> Result<()>
pub fn write(&self) -> Result<()>
Write the output to its expected destination.
See RenderOutput::path
for details.
sourcepub fn write_disk_only(&self) -> Result<()>
pub fn write_disk_only(&self) -> Result<()>
Write the output to its expected destination, if that destination is a file.
This is for “auxiliary files” which also need to be produced somehow, but which we can’t emit when printing the “main file” to stdout. With nowhere to put them, all we can do is warn.
See RenderOutput::path
for details.