pub struct ReleaseDeclarationArgs {
pub path: PathBuf,
pub json: bool,
}Expand description
Arguments for onevcs release declaration.
Fields§
§path: PathBufA repository’s root, or the release-targets.toml in it.
A path rather than the identity spelling every other verb takes: this reads a file a checkout carries, and a repository this host has never registered is exactly the case a consumer asks about.
json: boolReport as JSON rather than as a human table.
The two renderings this verb has, and deliberately not a third: rendering a
declaration back as TOML is a library call
(onevcs::render_release_declaration) and not a verb, because a producer’s
comments are not this crate’s to keep, and a verb that redirected a rendering
over a repository’s own release-targets.toml would delete the reasoning that
is the most valuable thing in it. A caller producing a declaration has no
comments to lose and reaches it through the library.
Trait Implementations§
Source§impl Args for ReleaseDeclarationArgs
impl Args for ReleaseDeclarationArgs
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 Clone for ReleaseDeclarationArgs
impl Clone for ReleaseDeclarationArgs
Source§impl Debug for ReleaseDeclarationArgs
impl Debug for ReleaseDeclarationArgs
impl Eq for ReleaseDeclarationArgs
Source§impl FromArgMatches for ReleaseDeclarationArgs
impl FromArgMatches for ReleaseDeclarationArgs
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.Source§impl Parser for ReleaseDeclarationArgs
impl Parser for ReleaseDeclarationArgs
Source§fn parse_from<I, T>(itr: I) -> Self
fn parse_from<I, T>(itr: I) -> Self
Source§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
Source§fn update_from<I, T>(&mut self, itr: I)
fn update_from<I, T>(&mut self, itr: I)
Source§impl PartialEq for ReleaseDeclarationArgs
impl PartialEq for ReleaseDeclarationArgs
impl StructuralPartialEq for ReleaseDeclarationArgs
Auto Trait Implementations§
impl Freeze for ReleaseDeclarationArgs
impl RefUnwindSafe for ReleaseDeclarationArgs
impl Send for ReleaseDeclarationArgs
impl Sync for ReleaseDeclarationArgs
impl Unpin for ReleaseDeclarationArgs
impl UnsafeUnpin for ReleaseDeclarationArgs
impl UnwindSafe for ReleaseDeclarationArgs
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.