pub struct RunOptions {
pub command: Vec<String>,
pub adapter: Option<String>,
pub cwd: PathBuf,
pub max_file_size: u64,
pub record_input: bool,
pub record_binary: bool,
pub extra_ignore: Vec<String>,
pub internal_exclude: Vec<PathBuf>,
pub hh_version: String,
pub redactor: Option<Arc<Detectors>>,
}Expand description
Per-recording options passed by the binary.
Fields§
§command: Vec<String>The command argv to spawn (program + args).
adapter: Option<String>Forced adapter name (hh run --adapter <name>), overriding auto-detect
(FR-1.5). None → auto-detect via hh_core::select_adapter. Today
only "claude-code" is accepted; an unknown name is an actionable error
from run.
cwd: PathBufWorking directory for the child and the FS watcher.
max_file_size: u64Max file size for FS capture (bytes).
record_input: boolRecord user keystrokes (FR-1.3/NFR-4; default off).
record_binary: boolStore binary file contents (FR-1.4; default off).
extra_ignore: Vec<String>Extra ignore patterns for the watcher.
internal_exclude: Vec<PathBuf>Absolute halfhand-owned paths under cwd to exclude from the watcher (the db file, the blobs dir) so the recorder doesn’t record itself.
hh_version: Stringhh version string (FR-1.2).
redactor: Option<Arc<Detectors>>Record-time redactor ([redaction] at_record, docs/redaction-design.md):
when set, event summaries/bodies are redacted by the writer task and
blob content by the redacting blob store, before anything hits disk.
Trait Implementations§
Source§impl Clone for RunOptions
impl Clone for RunOptions
Source§fn clone(&self) -> RunOptions
fn clone(&self) -> RunOptions
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for RunOptions
impl RefUnwindSafe for RunOptions
impl Send for RunOptions
impl Sync for RunOptions
impl Unpin for RunOptions
impl UnsafeUnpin for RunOptions
impl UnwindSafe for RunOptions
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
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,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.