pub enum ResourceDiff {
CatalogSchema(CatalogSchemaDiff),
ContentBlock(ContentBlockDiff),
EmailTemplate(EmailTemplateDiff),
CustomAttribute(CustomAttributeDiff),
}Expand description
Per-resource-kind diff result.
Variants§
CatalogSchema(CatalogSchemaDiff)
ContentBlock(ContentBlockDiff)
EmailTemplate(EmailTemplateDiff)
CustomAttribute(CustomAttributeDiff)
Implementations§
Source§impl ResourceDiff
impl ResourceDiff
pub fn kind(&self) -> ResourceKind
pub fn name(&self) -> &str
pub fn has_changes(&self) -> bool
Sourcepub fn is_actionable(&self) -> bool
pub fn is_actionable(&self) -> bool
Whether apply can act on this diff. For most resource types this
is the same as has_changes(). Custom Attributes are the exception:
only DeprecationToggled produces an API call. MetadataOnly,
UnregisteredInGit, and PresentInGitOnly are all informational
drift — Braze has no create endpoint for custom attributes (they
materialize on first /users/track), so registry-only entries are
expected and must not block apply.
pub fn has_destructive(&self) -> bool
pub fn is_orphan(&self) -> bool
Trait Implementations§
Source§impl Clone for ResourceDiff
impl Clone for ResourceDiff
Source§fn clone(&self) -> ResourceDiff
fn clone(&self) -> ResourceDiff
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 moreAuto Trait Implementations§
impl Freeze for ResourceDiff
impl RefUnwindSafe for ResourceDiff
impl Send for ResourceDiff
impl Sync for ResourceDiff
impl Unpin for ResourceDiff
impl UnsafeUnpin for ResourceDiff
impl UnwindSafe for ResourceDiff
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