pub struct RenderMarkdownRequest {
pub markdown: String,
pub meta: DocMeta,
pub brand: Option<BrandSpec>,
pub target: Target,
pub assets: AssetManifest,
pub options: RenderOptions,
}Expand description
Render a markdown document to target. Mirrors what the CLI’s render
subcommand builds before handing a ResolvedDoc to a backend: the body
after frontmatter extraction, the metadata that extraction produced, the
brand spec, and the flags that change the pipeline.
Fields§
§markdown: StringMarkdown body. Frontmatter may still be present — the server runs the
same frontmatter::extract the CLI does, and anything it finds wins
over an empty meta.
meta: DocMeta§brand: Option<BrandSpec>None renders with BrandSpec::default() — the same as omitting
--brand.
target: Target§assets: AssetManifestAssets this render may reach through the AssetProvider: images the
markdown references, layout/font keys named in options, an override
for a built-in template. Keys absent here resolve against the
server’s embedded catalog as usual.
options: RenderOptionsTrait Implementations§
Source§impl Clone for RenderMarkdownRequest
impl Clone for RenderMarkdownRequest
Source§fn clone(&self) -> RenderMarkdownRequest
fn clone(&self) -> RenderMarkdownRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RenderMarkdownRequest
impl Debug for RenderMarkdownRequest
Source§impl<'de> Deserialize<'de> for RenderMarkdownRequest
impl<'de> Deserialize<'de> for RenderMarkdownRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for RenderMarkdownRequest
Source§impl PartialEq for RenderMarkdownRequest
impl PartialEq for RenderMarkdownRequest
Source§impl Serialize for RenderMarkdownRequest
impl Serialize for RenderMarkdownRequest
impl StructuralPartialEq for RenderMarkdownRequest
Auto Trait Implementations§
impl Freeze for RenderMarkdownRequest
impl RefUnwindSafe for RenderMarkdownRequest
impl Send for RenderMarkdownRequest
impl Sync for RenderMarkdownRequest
impl Unpin for RenderMarkdownRequest
impl UnsafeUnpin for RenderMarkdownRequest
impl UnwindSafe for RenderMarkdownRequest
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