pub struct RecordsConfig {
pub level: RecordLevel,
pub keep_sessions: Option<u32>,
}Expand description
How much an environment records of its own build, and how long it keeps
it: what configure takes, and the [environment.records] table of the
runtime’s configuration.
Fields§
§level: RecordLevelbasic by default: every record, without the heavy parts.
keep_sessions: Option<u32>How many sessions an environment keeps; the oldest beyond it are
pruned with their records when a session is kept, at its first change
to the environment. A session that changes nothing prunes nothing, and
the session being kept always survives, so 0 keeps it alone, as 1
does. Every session is kept when unset.
Trait Implementations§
Source§impl Clone for RecordsConfig
impl Clone for RecordsConfig
impl Copy for RecordsConfig
Source§impl Debug for RecordsConfig
impl Debug for RecordsConfig
Source§impl Default for RecordsConfig
impl Default for RecordsConfig
Source§impl<'de> Deserialize<'de> for RecordsConfig
impl<'de> Deserialize<'de> for RecordsConfig
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 RecordsConfig
Source§impl PartialEq for RecordsConfig
impl PartialEq for RecordsConfig
Source§impl Serialize for RecordsConfig
impl Serialize for RecordsConfig
impl StructuralPartialEq for RecordsConfig
Auto Trait Implementations§
impl Freeze for RecordsConfig
impl RefUnwindSafe for RecordsConfig
impl Send for RecordsConfig
impl Sync for RecordsConfig
impl Unpin for RecordsConfig
impl UnsafeUnpin for RecordsConfig
impl UnwindSafe for RecordsConfig
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.