pub struct SessionsPruneOldResult {
pub candidates: Vec<String>,
pub deleted: Vec<String>,
pub dry_run: bool,
pub freed_bytes: i64,
pub skipped: Vec<String>,
}Expand description
Outcome of the prune operation: deleted IDs, dry-run candidates, skipped IDs, total bytes freed, and the dry-run flag.
Experimental. This type is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases.
Fields§
§candidates: Vec<String>Session IDs that would be deleted in dry-run mode (always empty otherwise)
deleted: Vec<String>Session IDs that were deleted (always empty in dry-run mode)
dry_run: boolTrue when no deletions were actually performed
freed_bytes: i64Total bytes freed (actual when not dry-run, projected when dry-run)
skipped: Vec<String>Session IDs that were skipped (e.g., named sessions)
Trait Implementations§
Source§impl Clone for SessionsPruneOldResult
impl Clone for SessionsPruneOldResult
Source§fn clone(&self) -> SessionsPruneOldResult
fn clone(&self) -> SessionsPruneOldResult
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 SessionsPruneOldResult
impl Debug for SessionsPruneOldResult
Source§impl Default for SessionsPruneOldResult
impl Default for SessionsPruneOldResult
Source§fn default() -> SessionsPruneOldResult
fn default() -> SessionsPruneOldResult
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SessionsPruneOldResult
impl<'de> Deserialize<'de> for SessionsPruneOldResult
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 SessionsPruneOldResult
impl RefUnwindSafe for SessionsPruneOldResult
impl Send for SessionsPruneOldResult
impl Sync for SessionsPruneOldResult
impl Unpin for SessionsPruneOldResult
impl UnsafeUnpin for SessionsPruneOldResult
impl UnwindSafe for SessionsPruneOldResult
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