pub struct LibraryArgs {
pub command: LibrarySub,
}Expand description
Arguments for zenith library.
The library subsystem is a set of reusable packs — collections of design
assets that you materialize into a .zen document. A pack is identified by
a package id such as @zenith/filters, and each pack exports one or more
named items addressed as <package>#<item> (e.g.
@zenith/flowchart#decision).
Three item kinds exist:
- token — a filter or mask token (e.g.
@zenith/filters#sepia). Added to the document’stokensblock; apply withfilter=(token)"sepia"ormask=(token)"vignette"on any node. - component — a reusable node group (e.g. a flowchart shape) that is
materialized as an
instanceon a named page. Requires--page <id>. - action — a canned transaction op sequence (e.g.
@zenith/brand-kit#apply-2026) that mutates the target document’s tokens or layout. No page required.
Embedded @zenith/* packs are bundled in the binary; project-local packs
live in <project-dir>/libraries/*.zen and shadow the embedded ones.
WORKFLOW: zenith library list # discover packs + items zenith library show @zenith/filters#sepia # inspect one item zenith library add @zenith/filters#sepia –into poster.zen
Fields§
§command: LibrarySubTrait Implementations§
Source§impl Args for LibraryArgs
impl Args for LibraryArgs
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
Append to
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl Debug for LibraryArgs
impl Debug for LibraryArgs
Source§impl FromArgMatches for LibraryArgs
impl FromArgMatches for LibraryArgs
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>
Assign values from
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>
Assign values from
ArgMatches to self.Auto Trait Implementations§
impl Freeze for LibraryArgs
impl RefUnwindSafe for LibraryArgs
impl Send for LibraryArgs
impl Sync for LibraryArgs
impl Unpin for LibraryArgs
impl UnsafeUnpin for LibraryArgs
impl UnwindSafe for LibraryArgs
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
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>
Converts
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>
Converts
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
Convert this type into
T, using the provided data to resolve any offsets.