pub struct SessionPruneResult {
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 SessionPruneResult
impl Clone for SessionPruneResult
Source§fn clone(&self) -> SessionPruneResult
fn clone(&self) -> SessionPruneResult
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 SessionPruneResult
impl Debug for SessionPruneResult
Source§impl Default for SessionPruneResult
impl Default for SessionPruneResult
Source§fn default() -> SessionPruneResult
fn default() -> SessionPruneResult
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SessionPruneResult
impl<'de> Deserialize<'de> for SessionPruneResult
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 SessionPruneResult
impl RefUnwindSafe for SessionPruneResult
impl Send for SessionPruneResult
impl Sync for SessionPruneResult
impl Unpin for SessionPruneResult
impl UnsafeUnpin for SessionPruneResult
impl UnwindSafe for SessionPruneResult
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