pub struct SessionOpenArgs {
pub headful: bool,
pub proxy: Option<String>,
pub user_data_dir: Option<String>,
}Fields§
§headful: boolRun headful (visible) instead of headless. Default is headless.
Set this to true if you want to log into a site manually in the
spawned Chrome window (pair with user_data_dir to persist).
proxy: Option<String>Optional proxy URL (e.g. “http://user:pass@host:port”).
user_data_dir: Option<String>Persistent Chrome profile directory. Omit for an ephemeral,
cookieless profile. Provide a path (e.g.
~/.config/voidcrawl-linkedin) to mount a profile across
sessions — log in once with headful=true, then subsequent
sessions reuse the cookie. Pick a path DEDICATED to voidcrawl;
Chrome locks a profile while running, so pointing at your
daily-driver profile while normal Chrome is open will fail.
Trait Implementations§
Source§impl Debug for SessionOpenArgs
impl Debug for SessionOpenArgs
Source§impl Default for SessionOpenArgs
impl Default for SessionOpenArgs
Source§fn default() -> SessionOpenArgs
fn default() -> SessionOpenArgs
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SessionOpenArgs
impl<'de> Deserialize<'de> for SessionOpenArgs
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 SessionOpenArgs
impl JsonSchema for SessionOpenArgs
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 Freeze for SessionOpenArgs
impl RefUnwindSafe for SessionOpenArgs
impl Send for SessionOpenArgs
impl Sync for SessionOpenArgs
impl Unpin for SessionOpenArgs
impl UnsafeUnpin for SessionOpenArgs
impl UnwindSafe for SessionOpenArgs
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