pub struct MigrationReport {Show 15 fields
pub file: String,
pub overall_risk: RiskLevel,
pub score: u32,
pub affected_tables: Vec<String>,
pub operations: Vec<DetectedOperation>,
pub warnings: Vec<String>,
pub recommendations: Vec<String>,
pub fk_impacts: Vec<FkImpact>,
pub estimated_lock_seconds: Option<u64>,
pub index_rebuild_required: bool,
pub requires_maintenance_window: bool,
pub analyzed_at: String,
pub pg_version: u32,
pub guard_required: bool,
pub guard_decisions: Vec<GuardDecision>,
}Fields§
§file: String§overall_risk: RiskLevel§score: u32§affected_tables: Vec<String>§operations: Vec<DetectedOperation>§warnings: Vec<String>§recommendations: Vec<String>§fk_impacts: Vec<FkImpact>§estimated_lock_seconds: Option<u64>§index_rebuild_required: bool§requires_maintenance_window: bool§analyzed_at: String§pg_version: u32Target PostgreSQL major version used for scoring (e.g. 14).
guard_required: boolWhether any operation in this report requires guard confirmation.
guard_decisions: Vec<GuardDecision>Guard decisions recorded during a guard run.
Trait Implementations§
Source§impl Clone for MigrationReport
impl Clone for MigrationReport
Source§fn clone(&self) -> MigrationReport
fn clone(&self) -> MigrationReport
Returns a duplicate of the value. Read more
1.0.0 · 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 MigrationReport
impl Debug for MigrationReport
Source§impl<'de> Deserialize<'de> for MigrationReport
impl<'de> Deserialize<'de> for MigrationReport
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 MigrationReport
impl RefUnwindSafe for MigrationReport
impl Send for MigrationReport
impl Sync for MigrationReport
impl Unpin for MigrationReport
impl UnsafeUnpin for MigrationReport
impl UnwindSafe for MigrationReport
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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