pub struct TextOutput {
pub formatted: String,
pub raw: String,
}Expand description
Text output with both formatted and raw versions.
This struct carries both the terminal-formatted output (with ANSI codes) and the raw output (with style tags but no ANSI codes). This allows post-output hooks like piping to choose the appropriate version.
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. Piping uses this by default.
Implementations§
Trait Implementations§
Source§impl Clone for TextOutput
impl Clone for TextOutput
Source§fn clone(&self) -> TextOutput
fn clone(&self) -> TextOutput
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 TextOutput
impl RefUnwindSafe for TextOutput
impl Send for TextOutput
impl Sync for TextOutput
impl Unpin for TextOutput
impl UnwindSafe for TextOutput
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