pub enum SchemaSub {
}Expand description
Subcommands of zenith schema.
Variants§
Nodes
List all authorable node kinds with their one-line summaries.
Node
Show the summary and recognized attributes for one node kind.
Ops
List all transaction ops with their one-line summaries.
Op
Show the summary, JSON fields, and a working example for one transaction op.
Page
Show the recognized attributes for a page declaration.
Lists every attribute the parser recognises on a page node:
geometry (w, h), margins, bleed, baseline-grid, line-jumps, parity,
and master.
Asset
Show the recognized attributes for an asset declaration.
Lists every attribute the parser recognises on an asset node inside
the assets { … } block: id, kind, src, sha256, and the full suite of
AI-provenance fields (ai-prompt, ai-model, ai-provider, …).
Document
Show the recognized attributes for the document root (zenith node).
Lists every attribute the parser recognises on the top-level zenith
node and the document { … } child block: version, colorspace, doc-id,
mirror-margins, page-progression, spread-gutter, margin-*, and more.
Tokens
List all authorable token types with their one-line summaries.
Shows every recognized type= value for a token node (color, dimension,
fontFamily, fontWeight, gradient, shadow, filter, mask, number) with a
one-line description. Use zenith schema token <type> for the full
value form, child-node structure, and a working example.
Token
Show the value form, child-node structure, and a working example for one token type.
Describes exactly what to write for a given type= value: whether the
token takes an inline value= literal (color, dimension, number,
fontFamily, fontWeight) or is defined by child nodes (gradient, shadow,
filter, mask), including the exact syntax for each.
Variant
Show the structure of the variants block and the override entry.
Documents the variants { variant id=… source=<page-id> w=(px)N h=(px)N { … } }
block structure, the override node="<id>" … entry, and its recognised
properties: node (required, the target node id selector — NOT id),
visible (#true/#false), text (string), fill (token ref or color),
and geometry x/y/w/h (typed dimensions, e.g. (px)100).
Includes a concrete worked example.
Diagnostics
Show the in-file diagnostic-policy verbs and the governable diagnostic codes.
Lists the three policy verbs (allow, deny, warn) usable inside a
root diagnostics { … } block, what each does, the precedence note
(in-file policy now; CLI flags/config resolve in a later unit), and the
full list of governable diagnostic codes (code · severity · summary).
Integrity Errors are listed as non-suppressible.
Brand
Show the structure and semantics of the top-level brand { … } block.
Documents the three optional child nodes (colors, fonts, weights),
placement (top-level sibling of tokens/assets/document inside
zenith version=1 { … }), the absent-child = unconstrained rule, and
the three diagnostic codes emitted when resolved token values fall outside
the declared contract (brand.color_off_palette, brand.font_not_allowed,
brand.weight_not_allowed). Shows how to elevate these Warnings to
blocking Errors for a CI gate via --deny or an in-file diagnostics
policy. Includes a complete worked example.
Block
Show the block role="…" declaration: role vocabulary, properties, scopes, and cascade.
Documents the block leaf declaration that maps a markdown block role
(h1–h6, p, blockquote, li, code-block, hr) to style and spacing overrides.
Declarable at three scopes: document body, page, and text node. The cascade
precedence is text > page > document (highest specificity wins). Block decls
are consumed only on text nodes with format="markdown".
Trait Implementations§
Source§impl FromArgMatches for SchemaSub
impl FromArgMatches for SchemaSub
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<'b>(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut<'b>( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§impl Subcommand for SchemaSub
impl Subcommand for SchemaSub
Source§fn augment_subcommands<'b>(__clap_app: Command) -> Command
fn augment_subcommands<'b>(__clap_app: Command) -> Command
Source§fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§fn has_subcommand(__clap_name: &str) -> bool
fn has_subcommand(__clap_name: &str) -> bool
Self can parse a specific subcommandAuto Trait Implementations§
impl Freeze for SchemaSub
impl RefUnwindSafe for SchemaSub
impl Send for SchemaSub
impl Sync for SchemaSub
impl Unpin for SchemaSub
impl UnsafeUnpin for SchemaSub
impl UnwindSafe for SchemaSub
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.