pub struct MigrateToPermissionsArgs {
pub dry_run: bool,
pub config_out: Option<PathBuf>,
pub config_in: Option<PathBuf>,
}Expand description
ai-memory governance migrate-to-permissions arguments.
Fields§
§dry_run: boolPrint the rendered [[permissions.rules]] block to stdout
without writing anywhere. This is the default behaviour when
--config-out is omitted; passing --dry-run explicitly is
supported for callers who want the intent to be obvious.
config_out: Option<PathBuf>Write the rendered [[permissions.rules]] block to this path.
When the path matches the loaded config file, the migrator
performs an in-place merge that preserves every other section.
When the path is different, the rendered block is written
standalone (overwriting any existing file at that path).
config_in: Option<PathBuf>Override the loaded config file path. Defaults to
~/.config/ai-memory/config.toml (the path
crate::config::AppConfig::config_path returns).
Trait Implementations§
Source§impl Args for MigrateToPermissionsArgs
impl Args for MigrateToPermissionsArgs
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 Clone for MigrateToPermissionsArgs
impl Clone for MigrateToPermissionsArgs
Source§fn clone(&self) -> MigrateToPermissionsArgs
fn clone(&self) -> MigrateToPermissionsArgs
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 MigrateToPermissionsArgs
impl Debug for MigrateToPermissionsArgs
Source§impl FromArgMatches for MigrateToPermissionsArgs
impl FromArgMatches for MigrateToPermissionsArgs
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 MigrateToPermissionsArgs
impl RefUnwindSafe for MigrateToPermissionsArgs
impl Send for MigrateToPermissionsArgs
impl Sync for MigrateToPermissionsArgs
impl Unpin for MigrateToPermissionsArgs
impl UnsafeUnpin for MigrateToPermissionsArgs
impl UnwindSafe for MigrateToPermissionsArgs
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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 more