pub struct PlanSummary {Show 14 fields
pub roles_created: usize,
pub roles_altered: usize,
pub roles_dropped: usize,
pub comments_changed: usize,
pub sessions_terminated: usize,
pub ownerships_reassigned: usize,
pub owned_objects_dropped: usize,
pub grants: usize,
pub revokes: usize,
pub default_privileges_set: usize,
pub default_privileges_revoked: usize,
pub members_added: usize,
pub members_removed: usize,
pub passwords_set: usize,
}Expand description
Summary statistics for a plan.
Fields§
§roles_created: usize§roles_altered: usize§roles_dropped: usize§comments_changed: usize§sessions_terminated: usize§ownerships_reassigned: usize§owned_objects_dropped: usize§grants: usize§revokes: usize§default_privileges_set: usize§default_privileges_revoked: usize§members_added: usize§members_removed: usize§passwords_set: usizeImplementations§
Source§impl PlanSummary
impl PlanSummary
Sourcepub fn from_changes(changes: &[Change]) -> Self
pub fn from_changes(changes: &[Change]) -> Self
Compute summary statistics from a list of changes.
Sourcepub fn has_structural_changes(&self) -> bool
pub fn has_structural_changes(&self) -> bool
True if the plan has structural drift (excluding password-only changes).
Password changes always appear in plans because passwords cannot be read
back from PostgreSQL for comparison. This method allows CI gates
(--exit-code) to distinguish real drift from password-only changes.
Trait Implementations§
Source§impl Debug for PlanSummary
impl Debug for PlanSummary
Source§impl Default for PlanSummary
impl Default for PlanSummary
Source§fn default() -> PlanSummary
fn default() -> PlanSummary
Returns the “default value” for a type. Read more
Source§impl Display for PlanSummary
impl Display for PlanSummary
Source§impl PartialEq for PlanSummary
impl PartialEq for PlanSummary
impl Eq for PlanSummary
impl StructuralPartialEq for PlanSummary
Auto Trait Implementations§
impl Freeze for PlanSummary
impl RefUnwindSafe for PlanSummary
impl Send for PlanSummary
impl Sync for PlanSummary
impl Unpin for PlanSummary
impl UnsafeUnpin for PlanSummary
impl UnwindSafe for PlanSummary
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<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
Compare self to
key and return true if they are equal.