pub struct RenderResult {
pub artifacts: Vec<Artifact>,
pub warnings: Vec<Diagnostic>,
pub output_format: OutputFormat,
}Expand description
Result type containing artifacts and warnings
Fields§
§artifacts: Vec<Artifact>Generated output artifacts
warnings: Vec<Diagnostic>Non-fatal diagnostic messages
output_format: OutputFormatOutput format that was produced
Implementations§
Source§impl RenderResult
impl RenderResult
Sourcepub fn new(artifacts: Vec<Artifact>, output_format: OutputFormat) -> Self
pub fn new(artifacts: Vec<Artifact>, output_format: OutputFormat) -> Self
Create a new result with artifacts and output format
Sourcepub fn with_warning(self, warning: Diagnostic) -> Self
pub fn with_warning(self, warning: Diagnostic) -> Self
Add a warning to the result
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RenderResult
impl !RefUnwindSafe for RenderResult
impl Send for RenderResult
impl Sync for RenderResult
impl Unpin for RenderResult
impl !UnwindSafe for RenderResult
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