pub struct RecorderConfig {
pub upstream: String,
pub cassette_path: PathBuf,
pub redact_headers: Vec<String>,
}Expand description
Configuration for Recorder::start.
Fields§
§upstream: StringUpstream base URL the recorder forwards to. Trailing slashes are
trimmed. Example: "https://api.anthropic.com".
cassette_path: PathBufFilesystem path for the JSONL cassette. The file is created if missing, truncated on start, and exchanges are written as they complete.
redact_headers: Vec<String>Header names (lowercase) whose values are dropped before being
recorded to disk. Defaults to DEFAULT_REDACT_HEADERS. Body
contents are not redacted – callers should ensure prompts
don’t contain secrets they don’t want in the cassette.
Trait Implementations§
Source§impl Clone for RecorderConfig
impl Clone for RecorderConfig
Source§fn clone(&self) -> RecorderConfig
fn clone(&self) -> RecorderConfig
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 RecorderConfig
impl Debug for RecorderConfig
Auto Trait Implementations§
impl Freeze for RecorderConfig
impl RefUnwindSafe for RecorderConfig
impl Send for RecorderConfig
impl Sync for RecorderConfig
impl Unpin for RecorderConfig
impl UnsafeUnpin for RecorderConfig
impl UnwindSafe for RecorderConfig
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