#[non_exhaustive]pub struct TabSummary {
pub id: TabId,
pub index: u32,
pub title: String,
pub url: String,
pub is_active: bool,
pub cookie_store_id: Option<CookieStoreId>,
pub container_name: Option<String>,
pub incognito: bool,
}Expand description
A brief summary of a tab, suitable for embedding in window listings.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.id: TabIdThe browser-assigned tab ID.
index: u32Zero-based position of the tab within its window.
title: StringThe tab’s title.
url: StringThe URL currently loaded in the tab.
is_active: boolWhether this is the currently active (focused) tab in its window.
The cookie store (container) ID this tab belongs to.
Firefox-specific; None on browsers that don’t support containers.
container_name: Option<String>The human-readable container name (e.g. “Work”, “Personal”).
Firefox-specific; None on browsers that don’t support containers.
incognito: boolWhether this tab is open in a private/incognito window.
Implementations§
Trait Implementations§
Source§impl Clone for TabSummary
impl Clone for TabSummary
Source§fn clone(&self) -> TabSummary
fn clone(&self) -> TabSummary
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TabSummary
impl Debug for TabSummary
Source§impl<'de> Deserialize<'de> for TabSummary
impl<'de> Deserialize<'de> for TabSummary
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 PartialEq for TabSummary
impl PartialEq for TabSummary
Source§impl Serialize for TabSummary
impl Serialize for TabSummary
impl Eq for TabSummary
impl StructuralPartialEq for TabSummary
Auto Trait Implementations§
impl Freeze for TabSummary
impl RefUnwindSafe for TabSummary
impl Send for TabSummary
impl Sync for TabSummary
impl Unpin for TabSummary
impl UnsafeUnpin for TabSummary
impl UnwindSafe for TabSummary
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