pub struct CapabilitiesResponse {
pub targets: Vec<Target>,
pub template_formats: Vec<TemplateFormat>,
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.
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).
Trait Implementations§
Source§impl Clone for CapabilitiesResponse
impl Clone for CapabilitiesResponse
Source§fn clone(&self) -> CapabilitiesResponse
fn clone(&self) -> CapabilitiesResponse
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 CapabilitiesResponse
impl Debug for CapabilitiesResponse
Source§impl<'de> Deserialize<'de> for CapabilitiesResponse
impl<'de> Deserialize<'de> for CapabilitiesResponse
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 CapabilitiesResponse
Source§impl PartialEq for CapabilitiesResponse
impl PartialEq for CapabilitiesResponse
Source§impl Serialize for CapabilitiesResponse
impl Serialize for CapabilitiesResponse
impl StructuralPartialEq for CapabilitiesResponse
Auto Trait Implementations§
impl Freeze for CapabilitiesResponse
impl RefUnwindSafe for CapabilitiesResponse
impl Send for CapabilitiesResponse
impl Sync for CapabilitiesResponse
impl Unpin for CapabilitiesResponse
impl UnsafeUnpin for CapabilitiesResponse
impl UnwindSafe for CapabilitiesResponse
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