pub struct RenderResult {
pub formatted: String,
pub raw: String,
}Expand description
Result of rendering that includes both formatted and raw output.
This struct is used when the caller needs both the terminal-formatted output (with ANSI codes) and the raw output (with style tags but no ANSI codes). The raw output is useful for piping to external commands.
Fields§
§formatted: StringThe formatted output with ANSI codes applied (for terminal display)
raw: StringThe raw output with [tag]...[/tag] markers but no ANSI codes.
This is the intermediate output after template rendering but before
style tag processing. Suitable for piping.
Implementations§
Trait Implementations§
Source§impl Clone for RenderResult
impl Clone for RenderResult
Source§fn clone(&self) -> RenderResult
fn clone(&self) -> RenderResult
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 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