pub struct HooksArgs {
pub style: Style,
pub docs_root: String,
pub entry: String,
pub language: String,
pub indent: String,
}Expand description
Render the delivered gate set as pre-commit hook entries.
Fields§
§style: StyleThe output shape: a managed block for an instance’s configuration, or the top-level manifest published to remote-hook consumers.
docs_root: StringWhat replaces {docs_root} in wiring patterns — a literal root for an
instance, a pattern for the published manifest.
entry: StringThe command prefix every entry invokes.
language: StringThe pre-commit language the entries declare.
indent: StringThe sequence-item indentation of the consumer’s repos entries.
Trait Implementations§
Source§impl Args for HooksArgs
impl Args for HooksArgs
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 FromArgMatches for HooksArgs
impl FromArgMatches for HooksArgs
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 HooksArgs
impl RefUnwindSafe for HooksArgs
impl Send for HooksArgs
impl Sync for HooksArgs
impl Unpin for HooksArgs
impl UnsafeUnpin for HooksArgs
impl UnwindSafe for HooksArgs
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