pub struct Records {
pub max_total: ByteSize,
pub max_count: u32,
pub max_age: Duration,
pub min_free: ByteSize,
}Expand description
[records]: how much the records of failed jobs may keep (record_failures under a profile turns them on).
When a new record would pass a limit, the oldest records go first. Every field has a default.
Fields§
§max_total: ByteSizeThe most disk all records may take together. Default 20G.
max_count: u32The most records kept. Default 10.
max_age: DurationHow long a record is kept. Default 7 days.
min_free: ByteSizeThe disk Docker must keep free: no record is made that would leave less. Default 10G.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Records
impl<'de> Deserialize<'de> for Records
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
impl Eq for Records
impl StructuralPartialEq for Records
Auto Trait Implementations§
impl Freeze for Records
impl RefUnwindSafe for Records
impl Send for Records
impl Sync for Records
impl Unpin for Records
impl UnsafeUnpin for Records
impl UnwindSafe for Records
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.