pub struct ApplyArgs {
pub resource: Option<ResourceKind>,
pub name: Option<String>,
pub confirm: bool,
pub allow_destructive: bool,
pub archive_orphans: bool,
pub plan: Option<PathBuf>,
}Fields§
§resource: Option<ResourceKind>Limit apply to a specific resource kind.
name: Option<String>When --resource is given, optionally restrict to a single named
resource. Requires --resource.
confirm: boolActually apply changes. Without this, runs in dry-run mode and makes zero write calls to Braze. This is the default for safety.
allow_destructive: boolPermit destructive operations (field deletes, etc.). Required in
addition to --confirm for any change that would lose data on
the Braze side.
archive_orphans: boolArchive orphan Content Blocks / Email Templates by prefixing the
remote name with [ARCHIVED-YYYY-MM-DD]. Inert for resource
kinds that have no orphan concept (e.g. catalog schema).
plan: Option<PathBuf>Load a plan file produced by diff --plan-out=<path> and refuse
to apply if the freshly-computed plan does not match. Exits with
code 7 on mismatch.
Trait Implementations§
Source§impl Args for ApplyArgs
impl Args for ApplyArgs
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 ApplyArgs
impl FromArgMatches for ApplyArgs
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 ApplyArgs
impl RefUnwindSafe for ApplyArgs
impl Send for ApplyArgs
impl Sync for ApplyArgs
impl Unpin for ApplyArgs
impl UnsafeUnpin for ApplyArgs
impl UnwindSafe for ApplyArgs
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