pub struct ConvertRequest<'a> {
pub input: &'a Path,
pub output: &'a Path,
pub bare: bool,
pub unsafe_html: bool,
pub private_output: bool,
pub css_override: Option<&'a Path>,
}Expand description
One render request for convert: a Markdown input, a destination, and
the render options. verbose is deliberately absent — diagnostics are
the caller’s presentation concern, and ConvertOutcome::timings
carries everything a caller needs to print them.
Fields§
§input: &'a PathThe Markdown source file.
output: &'a PathThe HTML file to write; created when missing, overwritten when present.
bare: boolEmit only the HTML fragment (no <html>, <head>, <body>, no CSS).
unsafe_html: boolPreserve raw HTML from the Markdown source instead of sanitizing it.
private_output: boolWrite the output file readable only by the current user.
css_override: Option<&'a Path>Custom CSS appended after mdo’s default styling. Read from disk here
and ignored under bare, because bare output emits no CSS.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Forget for ConvertRequest<'a>
impl<'a> Freeze for ConvertRequest<'a>
impl<'a> Move for ConvertRequest<'a>
impl<'a> RefUnwindSafe for ConvertRequest<'a>
impl<'a> Send for ConvertRequest<'a>
impl<'a> Sync for ConvertRequest<'a>
impl<'a> Unpin for ConvertRequest<'a>
impl<'a> UnsafeUnpin for ConvertRequest<'a>where
&'a Path: UnsafeUnpin,
impl<'a> UnwindSafe for ConvertRequest<'a>where
&'a Path: UnwindSafe,
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