pub enum PermissionsAction {
Show(PermissionsShowArgs),
Init(PermissionsInitArgs),
Path(PermissionsPathArgs),
Check(PermissionsCheckArgs),
Staging(StagingAction),
}Variants§
Show(PermissionsShowArgs)
Print the effective policy (global + local) for this project.
Init(PermissionsInitArgs)
Write a starter permissions.toml at the selected scope.
Path(PermissionsPathArgs)
Print the paths considered for this project, in precedence order.
Check(PermissionsCheckArgs)
Dry-run: ask whether a proposed action would be admitted without hitting Discord. Useful for agents that want to pre-flight.
Staging(StagingAction)
Staged-commit workflow: queue mutations in a .pending file and
only sign on commit. See [cli::permissions].
Trait Implementations§
Source§impl Debug for PermissionsAction
impl Debug for PermissionsAction
Source§impl FromArgMatches for PermissionsAction
impl FromArgMatches for PermissionsAction
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 PermissionsAction
impl Subcommand for PermissionsAction
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 PermissionsAction
impl RefUnwindSafe for PermissionsAction
impl Send for PermissionsAction
impl Sync for PermissionsAction
impl Unpin for PermissionsAction
impl UnsafeUnpin for PermissionsAction
impl UnwindSafe for PermissionsAction
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