#[non_exhaustive]pub struct TabGroupInfo {
pub id: TabGroupId,
pub title: String,
pub color: TabGroupColor,
pub collapsed: bool,
pub window_id: WindowId,
}Expand description
Information about a Chrome tab group.
Chrome-only; Firefox does not support tab groups.
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: TabGroupIdThe tab group’s unique identifier.
title: StringThe display title of the group (may be empty).
color: TabGroupColorThe color of the group.
collapsed: boolWhether the group is visually collapsed.
window_id: WindowIdThe window this group belongs to.
Implementations§
Source§impl TabGroupInfo
impl TabGroupInfo
Sourcepub const fn new(
id: TabGroupId,
title: String,
color: TabGroupColor,
collapsed: bool,
window_id: WindowId,
) -> Self
pub const fn new( id: TabGroupId, title: String, color: TabGroupColor, collapsed: bool, window_id: WindowId, ) -> Self
Create a new TabGroupInfo.
Trait Implementations§
Source§impl Clone for TabGroupInfo
impl Clone for TabGroupInfo
Source§fn clone(&self) -> TabGroupInfo
fn clone(&self) -> TabGroupInfo
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 TabGroupInfo
impl Debug for TabGroupInfo
Source§impl<'de> Deserialize<'de> for TabGroupInfo
impl<'de> Deserialize<'de> for TabGroupInfo
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 TabGroupInfo
impl PartialEq for TabGroupInfo
Source§impl Serialize for TabGroupInfo
impl Serialize for TabGroupInfo
impl Eq for TabGroupInfo
impl StructuralPartialEq for TabGroupInfo
Auto Trait Implementations§
impl Freeze for TabGroupInfo
impl RefUnwindSafe for TabGroupInfo
impl Send for TabGroupInfo
impl Sync for TabGroupInfo
impl Unpin for TabGroupInfo
impl UnsafeUnpin for TabGroupInfo
impl UnwindSafe for TabGroupInfo
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