pub struct PlanEntry {Show 13 fields
pub key: String,
pub module: String,
pub ty: String,
pub name: Option<String>,
pub status: PlanStatus,
pub live_in: Vec<String>,
pub core: CoreRelation,
pub destructive: bool,
pub destructive_reason: Option<String>,
pub lockout_risk: bool,
pub drift: Option<bool>,
pub files: Vec<PlanFile>,
pub diff: Option<String>,
}Expand description
One unit of the plan.
Fields§
§key: StringThe unit key (the unit directory, collection-relative).
module: StringModule id, e.g. ignition.
ty: StringResource type, e.g. database-translator.
name: Option<String>Resource name (or tag provider and folder path); null for a singleton.
status: PlanStatusThe unit’s status.
live_in: Vec<String>Where live copies sit: the ordered subset of ["core", "mode"].
core: CoreRelationThe core copy’s relation to the rendered unit.
destructive: boolTrue for removed entries, entries with delete-set files, and
added or changed tag units that drop live tag data (module doc).
destructive_reason: Option<String>Why the entry is destructive (module doc); null when it is not.
lockout_risk: boolTrue when a unit of a security type that the plan touches could lock the operator out of the gateway.
drift: Option<bool>Three-way drift against a --base render: true when any file’s live
sha256 differs from both the base and the desired sha256. Null
without --base. Excluded from plan_sha256.
files: Vec<PlanFile>The unit’s files, byte-sorted.
diff: Option<String>Redacted unified text diff of the unit’s differing files (--diff);
null without it, and for same and unmanaged entries. Excluded from
plan_sha256.
Trait Implementations§
impl Eq for PlanEntry
impl StructuralPartialEq for PlanEntry
Auto Trait Implementations§
impl Freeze for PlanEntry
impl RefUnwindSafe for PlanEntry
impl Send for PlanEntry
impl Sync for PlanEntry
impl Unpin for PlanEntry
impl UnsafeUnpin for PlanEntry
impl UnwindSafe for PlanEntry
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.