pub async fn take_screenshot(
mode: String,
monitor: Option<u32>,
window_id: Option<u32>,
store: State<'_, ImageStore>,
app: AppHandle,
window: WebviewWindow,
) -> Result<ScreenshotResponse, String>pub async fn take_screenshot(
mode: String,
monitor: Option<u32>,
window_id: Option<u32>,
store: State<'_, ImageStore>,
app: AppHandle,
window: WebviewWindow,
) -> Result<ScreenshotResponse, String>