pub struct RenderArgs {Show 15 fields
pub path: PathBuf,
pub scene: Option<PathBuf>,
pub png: Option<PathBuf>,
pub pdf: Option<PathBuf>,
pub embed_full_fonts: bool,
pub page: Option<usize>,
pub all_pages: Option<PathBuf>,
pub spread: Option<String>,
pub gutter: Option<u32>,
pub locked: bool,
pub json: bool,
pub allow: Vec<String>,
pub warn: Vec<String>,
pub deny: Vec<String>,
pub data: Option<PathBuf>,
}Expand description
Arguments for zenith render.
Fields§
§path: PathBufPath to the .zen document.
scene: Option<PathBuf>Write the compiled scene display-list JSON to this path.
png: Option<PathBuf>Write the rendered PNG to this path.
pdf: Option<PathBuf>Write a vector PDF (with print boxes + DeviceCMYK) to this path.
embed_full_fonts: boolEmbed whole font programs in the PDF instead of subsetting to used glyphs.
PDF text is always selectable and searchable; this only trades a larger file for embedding the complete face (default: subset for small files).
page: Option<usize>1-based page number to render; for --pdf, the default renders all pages.
Without --page, single-output flags (--scene/--png) render page 1,
while --pdf renders every page into one multi-page PDF. Passing
--page N selects exactly that page for all outputs.
all_pages: Option<PathBuf>Render every page to <DIR>/page-<N>.png (1-based) instead of a single page.
spread: Option<String>Render two facing pages side by side as a single PNG, e.g. --spread 10-11
(1-based page numbers; A on the left, B on the right). Requires --png.
gutter: Option<u32>Override the spread gutter in pixels (default: the document’s spread-gutter, or 0).
Only used when --spread is set.
locked: boolVerify each image asset’s bytes against its declared sha256 and fail on mismatch.
json: boolEmit machine-readable JSON (diagnostics + output path) to stdout.
allow: Vec<String>Suppress a diagnostic code (downgrade Warning/Advisory to nothing).
Repeatable. Overrides the document’s in-file diagnostics block and any
global/local config policy for this code.
warn: Vec<String>Force a diagnostic code to Warning severity.
Repeatable. Overrides the document’s in-file diagnostics block and any
global/local config policy for this code.
deny: Vec<String>Elevate a diagnostic code to a blocking Error (CI gate).
Repeatable. Overrides the document’s in-file diagnostics block and any
global/local config policy for this code.
data: Option<PathBuf>Path to a JSON object/array or CSV file supplying values for
(data)"field.path" references. JSON nested keys flatten to dot-paths
({"a":{"b":1}} → "a.b"); a JSON array uses the first element. CSV
header row gives field names; the first data row supplies values.
Produces a SINGLE render bound to the first object/row; for BATCH output
(one PNG per CSV row with a provenance manifest) use zenith merge instead.
Trait Implementations§
Source§impl Args for RenderArgs
impl Args for RenderArgs
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl Debug for RenderArgs
impl Debug for RenderArgs
Source§impl FromArgMatches for RenderArgs
impl FromArgMatches for RenderArgs
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Auto Trait Implementations§
impl Freeze for RenderArgs
impl RefUnwindSafe for RenderArgs
impl Send for RenderArgs
impl Sync for RenderArgs
impl Unpin for RenderArgs
impl UnsafeUnpin for RenderArgs
impl UnwindSafe for RenderArgs
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
Source§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
T, using the provided data to resolve any offsets.