pub struct PlanContent {
pub state: PlanState,
pub modules_added: Vec<String>,
pub modules_removed: Vec<String>,
pub capabilities: Vec<Capability>,
pub config_added: Vec<String>,
pub config_removed: Vec<String>,
pub config_changed: Vec<String>,
}Expand description
The full plan: the destination (PlanState, flattened on the
wire, the only part the digest hashes) plus the deltas against the
current baseline — the deploy record when one exists, else the
modules the migration lockfile knows. Every list is sorted and
every map ordered, so output is a pure function of the inputs.
Fields§
§state: PlanStateThe hashed destination.
modules_added: Vec<String>Slugs in the resolved set that the baseline does not have, sorted.
modules_removed: Vec<String>Baseline slugs the resolved set no longer carries, sorted.
Removing a module takes its data out of the served venture, so
a plan with any of these is destructive and fz deploy demands
the second consent for it.
capabilities: Vec<Capability>What each added module needs, from the catalog: its tier, the modules it requires, and whether the author selected it or a dependency pulled it in. Sorted by slug.
config_added: Vec<String>Config keys the baseline does not have, sorted.
config_removed: Vec<String>Baseline config keys the manifest drops, sorted.
config_changed: Vec<String>Baseline config keys whose value changed, sorted.
Trait Implementations§
Source§impl Clone for PlanContent
impl Clone for PlanContent
Source§impl Debug for PlanContent
impl Debug for PlanContent
Source§impl<'de> Deserialize<'de> for PlanContent
impl<'de> Deserialize<'de> for PlanContent
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>,
impl Eq for PlanContent
Source§impl PartialEq for PlanContent
impl PartialEq for PlanContent
Source§impl Serialize for PlanContent
impl Serialize for PlanContent
impl StructuralPartialEq for PlanContent
Auto Trait Implementations§
impl Freeze for PlanContent
impl RefUnwindSafe for PlanContent
impl Send for PlanContent
impl Sync for PlanContent
impl Unpin for PlanContent
impl UnsafeUnpin for PlanContent
impl UnwindSafe for PlanContent
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.