pub struct BrowserConfig {
pub executable: Option<PathBuf>,
pub profile_directory: Option<PathBuf>,
pub sandbox: bool,
pub arguments: Cow<'static, [String]>,
pub window_size: [u32; 2],
pub window_position: [i32; 2],
pub start_page: Cow<'static, str>,
pub viewport: [u32; 2],
}Expand description
Browser settings; the gateway always owns its private CDP endpoint and profile.
Fields§
§executable: Option<PathBuf>Chromium-compatible executable path or command; omitted uses Playwright discovery.
profile_directory: Option<PathBuf>Private persistent profile directory; omitted uses gateway desktop state.
sandbox: boolKeep Chromium’s internal sandbox enabled. Disabling requires an explicit operator choice.
arguments: Cow<'static, [String]>Additional launch switches. Profile, CDP, and sandbox switches are rejected.
window_size: [u32; 2]Headed window width and height in pixels.
window_position: [i32; 2]Headed window x and y position in pixels.
start_page: Cow<'static, str>Initial page for a newly launched browser or session tab.
viewport: [u32; 2]Headless browser viewport width and height in pixels.
Trait Implementations§
Source§impl Clone for BrowserConfig
impl Clone for BrowserConfig
Source§impl Debug for BrowserConfig
impl Debug for BrowserConfig
Source§impl Default for BrowserConfig
impl Default for BrowserConfig
Source§impl<'de> Deserialize<'de> for BrowserConfigwhere
BrowserConfig: Default,
impl<'de> Deserialize<'de> for BrowserConfigwhere
BrowserConfig: Default,
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
impl Eq for BrowserConfig
Source§impl PartialEq for BrowserConfig
impl PartialEq for BrowserConfig
Source§impl Serialize for BrowserConfig
impl Serialize for BrowserConfig
impl StructuralPartialEq for BrowserConfig
Auto Trait Implementations§
impl Freeze for BrowserConfig
impl RefUnwindSafe for BrowserConfig
impl Send for BrowserConfig
impl Sync for BrowserConfig
impl Unpin for BrowserConfig
impl UnsafeUnpin for BrowserConfig
impl UnwindSafe for BrowserConfig
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
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.