pub struct SimConfig {
pub bind: SocketAddr,
pub db_path: PathBuf,
pub seed: bool,
pub seed_file: Option<PathBuf>,
pub ephemeral: bool,
pub rate_limit_rps: u32,
}Expand description
Runtime configuration for the simulator.
Fields§
§bind: SocketAddrBind address. Use 127.0.0.1:0 for a random port (recommended in tests).
db_path: PathBufPath to the SQLite DB file. Created if absent. Use :memory: or set
ephemeral=true for a transient DB.
seed: boolWhether to install seed data on first run.
seed_file: Option<PathBuf>Optional path to the seed JSON. If None and seed=true, nothing is
seeded — callers pass the fixture path via --seed-file.
ephemeral: boolOpen DB as :memory: regardless of db_path.
rate_limit_rps: u32Per-agent rate limit in requests per second. Default 100.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SimConfig
impl<'de> Deserialize<'de> for SimConfig
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 SimConfig
impl RefUnwindSafe for SimConfig
impl Send for SimConfig
impl Sync for SimConfig
impl Unpin for SimConfig
impl UnsafeUnpin for SimConfig
impl UnwindSafe for SimConfig
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