pub struct RunRetention {
pub keep_last: Option<u32>,
pub ttl: Option<Dur>,
}Fields§
§keep_last: Option<u32>Keep at most this many terminal runs (newest first).
ttl: Option<Dur>Drop a terminal run older than this.
Trait Implementations§
Source§impl Clone for RunRetention
impl Clone for RunRetention
Source§fn clone(&self) -> RunRetention
fn clone(&self) -> RunRetention
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 RunRetention
impl Debug for RunRetention
Source§impl Default for RunRetention
impl Default for RunRetention
Source§fn default() -> RunRetention
fn default() -> RunRetention
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RunRetentionwhere
RunRetention: Default,
impl<'de> Deserialize<'de> for RunRetentionwhere
RunRetention: Default,
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
Source§impl PartialEq for RunRetention
impl PartialEq for RunRetention
impl StructuralPartialEq for RunRetention
Auto Trait Implementations§
impl Freeze for RunRetention
impl RefUnwindSafe for RunRetention
impl Send for RunRetention
impl Sync for RunRetention
impl Unpin for RunRetention
impl UnsafeUnpin for RunRetention
impl UnwindSafe for RunRetention
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