pub struct CapabilitiesResponse {
pub targets: Vec<Target>,
pub template_formats: Vec<TemplateFormat>,
pub generators: Vec<Generator>,
pub max_upload_bytes: u64,
pub version: String,
}Expand description
What this mdcast-server deployment can actually render right now.
Fields§
§targets: Vec<Target>Targets POST /v1/render can produce. The typst-backed entries
(pdf, pdf-presentation) are always present; the pandoc-backed ones
(docx, odt, pptx, html-reveal) appear only when the server
found a working pandoc binary at startup.
template_formats: Vec<TemplateFormat>Formats POST /v1/render/template can produce. pdf is always
present; html appears only when this deployment can actually export
it — the typst-html build feature, or MDCAST_TYPST=cli.
generators: Vec<Generator>Generator kinds this build renders — in markdown (RenderOptions
flags) and as RenderTemplateRequest.generated entries. Empty from a
server older than the field.
max_upload_bytes: u64Echoes MDCAST_MAX_UPLOAD_BYTES — the ceiling on every request body,
not just uploads — so a client can reject an oversized bundle before
any round trip instead of discovering the limit via 413.
version: StringThe running server’s crate version (CARGO_PKG_VERSION).