pub struct PlanFile {
pub version: u32,
pub generated_at: DateTime<Utc>,
pub braze_sync_version: String,
pub scope: PlanScope,
pub ops: Vec<PlanOp>,
}Fields§
§version: u32§generated_at: DateTime<Utc>§braze_sync_version: String§scope: PlanScope§ops: Vec<PlanOp>Implementations§
Source§impl PlanFile
impl PlanFile
pub fn from_summary( summary: &DiffSummary, environment: impl Into<String>, resource: Option<ResourceKind>, name: Option<String>, archive_orphans: bool, ) -> Self
pub fn read_from(path: &Path) -> Result<Self>
pub fn write_to(&self, path: &Path) -> Result<()>
Sourcepub fn diff_ops(&self, fresh: &[PlanOp]) -> PlanOpsDiff
pub fn diff_ops(&self, fresh: &[PlanOp]) -> PlanOpsDiff
Compare saved ops against fresh as a multiset over (kind, name, op_type), order-independent. collect_ops is invariant-by-design
unique per (kind, name) today, but we use a merge walk rather
than a set so duplicates would surface as drift instead of being
silently collapsed.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PlanFile
impl<'de> Deserialize<'de> for PlanFile
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for PlanFile
impl RefUnwindSafe for PlanFile
impl Send for PlanFile
impl Sync for PlanFile
impl Unpin for PlanFile
impl UnsafeUnpin for PlanFile
impl UnwindSafe for PlanFile
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