pub struct RecorderConfig {
pub mode: RecorderMode,
pub name: Option<String>,
pub root: PathBuf,
pub on_divergence: Divergence,
}Expand description
Recorder (record/replay) configuration. None on [Settings] leaves the
model wrapper a pass-through.
Fields§
§mode: RecorderMode§name: Option<String>Directory name for this recording under root. None uses the session
id, which is what production recording wants; tests name theirs so a
replay can find it again.
root: PathBufWhere recordings live. Each one is a self-contained directory beneath it, so a host retires a recording by deleting that directory.
on_divergence: DivergenceTrait Implementations§
Source§impl Clone for RecorderConfig
impl Clone for RecorderConfig
Source§impl Debug for RecorderConfig
impl Debug for RecorderConfig
Source§impl<'de> Deserialize<'de> for RecorderConfig
impl<'de> Deserialize<'de> for RecorderConfig
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
Source§impl JsonSchema for RecorderConfig
impl JsonSchema for RecorderConfig
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Forget for RecorderConfig
impl Freeze for RecorderConfig
impl Move for RecorderConfig
impl RefUnwindSafe for RecorderConfig
impl Send for RecorderConfigwhere
RawVecInner: Send,
impl Sync for RecorderConfigwhere
RawVecInner: Sync,
impl Unpin for RecorderConfig
impl UnsafeUnpin for RecorderConfig
impl UnwindSafe for RecorderConfigwhere
RawVecInner: UnwindSafe,
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