pub struct PlanMetadata {
pub pgevolve_version: String,
pub planner_ruleset_version: u32,
pub source_rev: Option<String>,
pub target_identity: String,
pub target_snapshot: Catalog,
pub created_at: OffsetDateTime,
pub lint_at_plan_findings: Vec<RecordedFinding>,
}Expand description
Metadata produced alongside a Plan and embedded into manifest.toml.
Fields§
§pgevolve_version: Stringpgevolve crate version string at plan time.
planner_ruleset_version: u32Planner ruleset version (from PlannerPolicy) at plan time.
source_rev: Option<String>Optional source-tree revision identifier (e.g., git:abc1234).
target_identity: StringStable identifier for the target database
(hash of host/port/dbname/system_identifier, computed by the apply path).
target_snapshot: CatalogCatalog snapshot used as the diff pre-image; the executor uses it for drift detection at apply time.
created_at: OffsetDateTimeUTC timestamp when the plan was constructed.
lint_at_plan_findings: Vec<RecordedFinding>LintAtPlan findings present at plan time. Populated by pgevolve plan
whenever drift lints fire. Empty when no LintAtPlan findings exist.
Used by apply-time preflight to detect waiver removal between plan and apply.
Trait Implementations§
Source§impl Clone for PlanMetadata
impl Clone for PlanMetadata
Source§fn clone(&self) -> PlanMetadata
fn clone(&self) -> PlanMetadata
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 PlanMetadata
impl Debug for PlanMetadata
Source§impl PartialEq for PlanMetadata
impl PartialEq for PlanMetadata
Source§fn eq(&self, other: &PlanMetadata) -> bool
fn eq(&self, other: &PlanMetadata) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PlanMetadata
Auto Trait Implementations§
impl Freeze for PlanMetadata
impl RefUnwindSafe for PlanMetadata
impl Send for PlanMetadata
impl Sync for PlanMetadata
impl Unpin for PlanMetadata
impl UnsafeUnpin for PlanMetadata
impl UnwindSafe for PlanMetadata
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