pub struct LibraryAddArgs {
pub spec: String,
pub into: PathBuf,
pub page: Option<String>,
pub at: Option<String>,
pub id: Option<String>,
pub dry_run: bool,
}Expand description
Arguments for zenith library add.
Fields§
§spec: StringThe item to add, as <package>#<item>, e.g. @zenith/flowchart#decision.
into: PathBufTarget .zen document to materialize the item into (written in-place,
unless --dry-run). Its parent directory is the project dir whose
libraries/*.zen packs are resolved alongside the embedded presets.
page: Option<String>Id of the page in the target document to place the instance on.
Required only for COMPONENT items; TOKEN items (filter tokens) ignore it.
at: Option<String>Instance origin as X,Y in pixels (default 0,0).
id: Option<String>Override the generated instance id base (default: the item name).
dry_run: boolPrint the resulting source to stdout WITHOUT writing the file.
Trait Implementations§
Source§impl Args for LibraryAddArgs
impl Args for LibraryAddArgs
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 LibraryAddArgs
impl Debug for LibraryAddArgs
Source§impl FromArgMatches for LibraryAddArgs
impl FromArgMatches for LibraryAddArgs
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 LibraryAddArgs
impl RefUnwindSafe for LibraryAddArgs
impl Send for LibraryAddArgs
impl Sync for LibraryAddArgs
impl Unpin for LibraryAddArgs
impl UnsafeUnpin for LibraryAddArgs
impl UnwindSafe for LibraryAddArgs
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.