pub struct SessionsPruneOldRequest {
pub dry_run: Option<bool>,
pub exclude_session_ids: Option<Vec<String>>,
pub include_named: Option<bool>,
pub older_than_days: i64,
}Expand description
Age threshold and optional flags controlling which old sessions are pruned (or simulated when dryRun is true).
Experimental. This type is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases.
Fields§
§dry_run: Option<bool>When true, only report what would be deleted without performing any deletion
exclude_session_ids: Option<Vec<String>>Session IDs that should never be considered for pruning
include_named: Option<bool>When true, named sessions (set via /rename) are also eligible for pruning
older_than_days: i64Delete sessions whose modifiedTime is at least this many days old
Trait Implementations§
Source§impl Clone for SessionsPruneOldRequest
impl Clone for SessionsPruneOldRequest
Source§fn clone(&self) -> SessionsPruneOldRequest
fn clone(&self) -> SessionsPruneOldRequest
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 SessionsPruneOldRequest
impl Debug for SessionsPruneOldRequest
Source§impl Default for SessionsPruneOldRequest
impl Default for SessionsPruneOldRequest
Source§fn default() -> SessionsPruneOldRequest
fn default() -> SessionsPruneOldRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SessionsPruneOldRequest
impl<'de> Deserialize<'de> for SessionsPruneOldRequest
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 SessionsPruneOldRequest
impl RefUnwindSafe for SessionsPruneOldRequest
impl Send for SessionsPruneOldRequest
impl Sync for SessionsPruneOldRequest
impl Unpin for SessionsPruneOldRequest
impl UnsafeUnpin for SessionsPruneOldRequest
impl UnwindSafe for SessionsPruneOldRequest
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