pub struct DiffArgs {
pub resource: Option<ResourceKind>,
pub name: Option<String>,
pub fail_on_drift: bool,
pub plan_out: Option<PathBuf>,
pub archive_orphans: bool,
}Fields§
§resource: Option<ResourceKind>Limit diff to a specific resource kind.
name: Option<String>When --resource is given, optionally restrict to a single named
resource. Requires --resource.
fail_on_drift: boolExit with code 2 if any drift is detected. Intended for CI gates.
plan_out: Option<PathBuf>Write a plan file (JSON) to this path. The file freezes the set of
actionable ops so a later apply --plan=<path> can refuse to run
when Braze has drifted since the plan was generated.
archive_orphans: boolRecord --archive-orphans intent in the plan file. diff itself
does not write to Braze; this only persists the operator’s intent
so apply --plan can reject a mode mismatch (orphan ops would
otherwise silently no-op or fire depending on the apply flag).
Trait Implementations§
Source§impl Args for DiffArgs
impl Args for DiffArgs
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 DiffArgs
impl FromArgMatches for DiffArgs
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 DiffArgs
impl RefUnwindSafe for DiffArgs
impl Send for DiffArgs
impl Sync for DiffArgs
impl Unpin for DiffArgs
impl UnsafeUnpin for DiffArgs
impl UnwindSafe for DiffArgs
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