pub struct DevConfig {
pub port: u16,
pub host: String,
pub open_browser: bool,
pub hot_reload: bool,
pub agent_mode: bool,
pub devtools: bool,
}Expand description
Development server configuration.
This is the core of rdesktop’s Agent-first development story.
During rdesktop dev, the app is served as a web page that AI agents
can interact with using mature browser automation tools (Playwright, Puppeteer).
Fields§
§port: u16Port for the development server (default: 1420, same as Tauri)
host: StringHost to bind to (default: “localhost”) Use “0.0.0.0” to allow remote agent access
open_browser: boolWhether to open the browser automatically
hot_reload: boolEnable hot reload on file changes
agent_mode: boolEnable the Agent MCP endpoint for structured interaction When enabled, exposes /rdesktop/agent/* endpoints for:
- DOM inspection (without screenshots)
- Element querying (CSS selectors, text content)
- Action execution (click, type, scroll)
- State snapshots (full DOM + computed styles)
devtools: boolEnable the devtools overlay in browser mode
Trait Implementations§
Source§impl<'de> Deserialize<'de> for DevConfig
impl<'de> Deserialize<'de> for DevConfig
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 DevConfig
impl RefUnwindSafe for DevConfig
impl Send for DevConfig
impl Sync for DevConfig
impl Unpin for DevConfig
impl UnsafeUnpin for DevConfig
impl UnwindSafe for DevConfig
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