pub struct BufferConfig {
pub enabled: bool,
pub max_entries: usize,
pub max_size_mb: usize,
pub max_age_hours: u32,
pub exclude_patterns: Vec<String>,
}Expand description
Retrospective buffer configuration.
The buffer captures output from all shell commands, allowing users to
retroactively save commands they didn’t explicitly capture with shq run.
Fields§
§enabled: boolEnable retrospective buffering. Disabled by default for security.
max_entries: usizeMaximum number of commands to keep in buffer.
max_size_mb: usizeMaximum total size of buffer in megabytes.
max_age_hours: u32Maximum age of buffer entries in hours.
exclude_patterns: Vec<String>Additional command patterns to exclude from buffering. These are checked in addition to hooks.ignore_patterns. Commands matching these patterns may contain sensitive output.
Trait Implementations§
Source§impl Clone for BufferConfig
impl Clone for BufferConfig
Source§fn clone(&self) -> BufferConfig
fn clone(&self) -> BufferConfig
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 BufferConfig
impl Debug for BufferConfig
Source§impl Default for BufferConfig
impl Default for BufferConfig
Source§impl<'de> Deserialize<'de> for BufferConfig
impl<'de> Deserialize<'de> for BufferConfig
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 BufferConfig
impl RefUnwindSafe for BufferConfig
impl Send for BufferConfig
impl Sync for BufferConfig
impl Unpin for BufferConfig
impl UnwindSafe for BufferConfig
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