pub struct PartialPlan {
pub id_short: String,
pub pgevolve_version: String,
pub planner_ruleset_version: u32,
pub source_rev: Option<String>,
pub target_identity: String,
pub intents_required: u32,
pub created_at: OffsetDateTime,
pub groups: Vec<TransactionGroup>,
}Expand description
Loosely-typed view of a parsed plan.sql. Final Plan assembly happens in
read_plan_dir, which cross-references this with intent.toml and
manifest.toml.
Fields§
§id_short: Stringplan id= value — the 16-char short hash.
pgevolve_version: Stringversion= value.
planner_ruleset_version: u32ruleset= value.
source_rev: Option<String>source_rev= value, if present.
target_identity: Stringtarget= value (opaque target identity).
intents_required: u32intents_required= value.
created_at: OffsetDateTimeParsed created= timestamp.
groups: Vec<TransactionGroup>Recovered groups (each step’s destructive_reason is None here; the
reason lives in intent.toml and is grafted on in read_plan_dir).
Trait Implementations§
Source§impl Clone for PartialPlan
impl Clone for PartialPlan
Source§fn clone(&self) -> PartialPlan
fn clone(&self) -> PartialPlan
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PartialPlan
impl Debug for PartialPlan
impl Eq for PartialPlan
Source§impl PartialEq for PartialPlan
impl PartialEq for PartialPlan
Source§fn eq(&self, other: &PartialPlan) -> bool
fn eq(&self, other: &PartialPlan) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PartialPlan
Auto Trait Implementations§
impl Freeze for PartialPlan
impl RefUnwindSafe for PartialPlan
impl Send for PartialPlan
impl Sync for PartialPlan
impl Unpin for PartialPlan
impl UnsafeUnpin for PartialPlan
impl UnwindSafe for PartialPlan
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more