pub enum PolicySubcommand {
Lint(LintCommand),
Compile(CompileCommand),
Explain(ExplainCommand),
Test(TestCommand),
Diff(DiffCommand),
}Variants§
Lint(LintCommand)
Validate policy JSON syntax without full compilation.
Compile(CompileCommand)
Compile a policy file with full validation.
Explain(ExplainCommand)
Evaluate a policy against a context and show the decision.
Test(TestCommand)
Run a policy against a test suite.
Diff(DiffCommand)
Compare two policies and show semantic differences.
Trait Implementations§
Source§impl Clone for PolicySubcommand
impl Clone for PolicySubcommand
Source§fn clone(&self) -> PolicySubcommand
fn clone(&self) -> PolicySubcommand
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PolicySubcommand
impl Debug for PolicySubcommand
Source§impl FromArgMatches for PolicySubcommand
impl FromArgMatches for PolicySubcommand
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<'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>
Assign values from
ArgMatches to self.Source§impl Subcommand for PolicySubcommand
impl Subcommand for PolicySubcommand
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
Append to
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
Test whether
Self can parse a specific subcommandAuto Trait Implementations§
impl Freeze for PolicySubcommand
impl RefUnwindSafe for PolicySubcommand
impl Send for PolicySubcommand
impl Sync for PolicySubcommand
impl Unpin for PolicySubcommand
impl UnsafeUnpin for PolicySubcommand
impl UnwindSafe for PolicySubcommand
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