pub enum PreservationStrategy {
ImmediateCompression {
target_ratio: f64,
},
GradualCompression {
target_ratio: f64,
},
SelectiveRetention {
preserve_decisions: bool,
preserve_errors: bool,
},
ContextReset {
preserve_session_data: bool,
},
NoAction,
}
Expand description
Strategy for preserving context
Variants§
Trait Implementations§
Source§impl Clone for PreservationStrategy
impl Clone for PreservationStrategy
Source§fn clone(&self) -> PreservationStrategy
fn clone(&self) -> PreservationStrategy
Returns a duplicate of the value. Read more
1.0.0 · 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 PreservationStrategy
impl Debug for PreservationStrategy
Source§impl<'de> Deserialize<'de> for PreservationStrategy
impl<'de> Deserialize<'de> for PreservationStrategy
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 PreservationStrategy
impl RefUnwindSafe for PreservationStrategy
impl Send for PreservationStrategy
impl Sync for PreservationStrategy
impl Unpin for PreservationStrategy
impl UnwindSafe for PreservationStrategy
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