pub struct ExportSvgOptions<'a> {
pub title: &'a str,
pub theme: Option<&'a TerminalTheme>,
pub clear: bool,
pub code_format: Option<&'a str>,
pub font_aspect_ratio: f64,
pub unique_id: &'a str,
}Expand description
The keyword arguments of upstream’s Console.export_svg and save_svg,
for Console::export_svg_recorded.
Fields§
§title: &'a strtitle=: the window title (default "Rich").
theme: Option<&'a TerminalTheme>theme=: the palette, or None for
SVG_EXPORT_THEME.
clear: boolclear=: empty the record afterwards (default true).
code_format: Option<&'a str>code_format=: the image template, or None for
CONSOLE_SVG_FORMAT.
font_aspect_ratio: f64font_aspect_ratio=: the font’s width to height (default 0.61).
unique_id: &'a strunique_id=: the prefix of the image’s ids and classes. Upstream’s
default hashes Python’s repr() of the segments, which Rust cannot
reproduce (DIVERGENCES §15); the default here is "terminal".
Trait Implementations§
Source§impl<'a> Clone for ExportSvgOptions<'a>
impl<'a> Clone for ExportSvgOptions<'a>
impl<'a> Copy for ExportSvgOptions<'a>
Auto Trait Implementations§
impl<'a> Freeze for ExportSvgOptions<'a>
impl<'a> RefUnwindSafe for ExportSvgOptions<'a>
impl<'a> Send for ExportSvgOptions<'a>
impl<'a> Sync for ExportSvgOptions<'a>
impl<'a> Unpin for ExportSvgOptions<'a>
impl<'a> UnsafeUnpin for ExportSvgOptions<'a>
impl<'a> UnwindSafe for ExportSvgOptions<'a>
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