pub struct DevtoolsRequest {
pub cmd: String,
pub body: Option<String>,
pub save_path: Option<PathBuf>,
pub json: bool,
}Expand description
Аргументы одной команды light devtools.
Fields§
§cmd: StringИмя подкоманды: tree, layout, find, click, type, key, state, shot, session.
body: Option<String>Строковое тело запроса после имени команды (может быть пустым).
save_path: Option<PathBuf>Путь для сохранения скриншота (для shot --path).
json: boolРазрешён ли вывод JSON (--json).
Implementations§
Trait Implementations§
Source§impl Clone for DevtoolsRequest
impl Clone for DevtoolsRequest
Auto Trait Implementations§
impl Forget for DevtoolsRequest
impl Freeze for DevtoolsRequest
impl RefUnwindSafe for DevtoolsRequest
impl Send for DevtoolsRequest
impl Sync for DevtoolsRequest
impl Unpin for DevtoolsRequest
impl UnsafeUnpin for DevtoolsRequest
impl UnwindSafe for DevtoolsRequest
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