pub struct LoginRequest<'a> {
pub cdp_url: &'a str,
pub phone: &'a str,
pub channel: Channel,
pub previous: Option<Session>,
pub copy_browser_address: bool,
}Expand description
What to start a LoginDriver with.
Fields§
§cdp_url: &'a strCDP endpoint of a headed browser (e.g. http://127.0.0.1:9222).
phone: &'a strInternational form (+63…). Used only to type into the page; never
stored, logged or returned (only masked).
channel: Channel§previous: Option<Session>The previous session for this account, if any: its address/country/ language cookies are carried over.
copy_browser_address: boolCopy the address from the browser’s default context when there is no
previous one. Keep false for a browser shared between accounts.
Trait Implementations§
Source§impl<'a> Clone for LoginRequest<'a>
impl<'a> Clone for LoginRequest<'a>
Auto Trait Implementations§
impl<'a> Forget for LoginRequest<'a>
impl<'a> Freeze for LoginRequest<'a>
impl<'a> RefUnwindSafe for LoginRequest<'a>
impl<'a> Send for LoginRequest<'a>
impl<'a> Sync for LoginRequest<'a>
impl<'a> Unpin for LoginRequest<'a>
impl<'a> UnsafeUnpin for LoginRequest<'a>
impl<'a> UnwindSafe for LoginRequest<'a>
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