pub enum CliResult {
BrowserInfo(BrowserInfo),
Windows {
windows: Vec<WindowSummary>,
},
WindowId {
window_id: u32,
},
Tabs {
tabs: Vec<TabDetails>,
},
Tab(TabDetails),
Unit,
}Expand description
The result payload of a successful command.
Variants§
BrowserInfo(BrowserInfo)
Browser information returned by GetBrowserInfo.
Windows
Window list returned by ListWindows.
Fields
§
windows: Vec<WindowSummary>The list of windows.
WindowId
ID of a newly created window returned by OpenWindow.
Tabs
Detailed tab list returned by ListTabs.
Fields
§
tabs: Vec<TabDetails>The list of tabs.
Tab(TabDetails)
Details of a newly created or moved tab.
Unit
Returned by commands that have no meaningful output.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CliResult
impl<'de> Deserialize<'de> for CliResult
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 CliResult
impl StructuralPartialEq for CliResult
Auto Trait Implementations§
impl Freeze for CliResult
impl RefUnwindSafe for CliResult
impl Send for CliResult
impl Sync for CliResult
impl Unpin for CliResult
impl UnsafeUnpin for CliResult
impl UnwindSafe for CliResult
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