#[non_exhaustive]pub struct PruneStats {
pub deleted: u64,
}Expand description
Outcome of a Indexer::prune operation, surfaced to the CLI’s prune
subcommand for its completion summary.
Marked #[non_exhaustive] so later milestones can add fields (e.g. bytes
reclaimed by the VACUUM) without breaking the public API.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.deleted: u64Number of rows deleted by the prune.
Trait Implementations§
Source§impl Clone for PruneStats
impl Clone for PruneStats
Source§fn clone(&self) -> PruneStats
fn clone(&self) -> PruneStats
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 PruneStats
impl Debug for PruneStats
Source§impl Default for PruneStats
impl Default for PruneStats
Source§fn default() -> PruneStats
fn default() -> PruneStats
Returns the “default value” for a type. Read more
Source§impl PartialEq for PruneStats
impl PartialEq for PruneStats
Source§fn eq(&self, other: &PruneStats) -> bool
fn eq(&self, other: &PruneStats) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for PruneStats
impl Eq for PruneStats
impl StructuralPartialEq for PruneStats
Auto Trait Implementations§
impl Freeze for PruneStats
impl RefUnwindSafe for PruneStats
impl Send for PruneStats
impl Sync for PruneStats
impl Unpin for PruneStats
impl UnsafeUnpin for PruneStats
impl UnwindSafe for PruneStats
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