pub struct Workspace {
pub id: WorkspaceId,
pub name: String,
pub monitor: String,
pub monitor_id: Option<MonitorId>,
pub windows: u16,
pub fullscreen: bool,
pub last_window: Address,
pub last_window_title: String,
}Expand description
This struct holds information for a workspace
Fields§
§id: WorkspaceIdThe workspace Id
name: StringThe workspace’s name
monitor: StringThe monitor the workspace is on
monitor_id: Option<MonitorId>The monitor id the workspace is on, can be None in some cases
windows: u16The amount of windows in the workspace
fullscreen: boolA bool that shows if there is a fullscreen window in the workspace
last_window: AddressThe last window’s Address
last_window_title: StringThe last window’s title
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Workspace
impl<'de> Deserialize<'de> for Workspace
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 Workspace
Source§impl HyprDataActive for Workspace
impl HyprDataActive for Workspace
Source§fn get_active() -> Result<Self>
fn get_active() -> Result<Self>
This method gets the active data
Source§async fn get_active_async() -> Result<Self>
async fn get_active_async() -> Result<Self>
This method gets the active data (async)
Source§fn instance_get_active(instance: &Instance) -> Result<Self>
fn instance_get_active(instance: &Instance) -> Result<Self>
This method gets the active data
Source§async fn instance_get_active_async(instance: &Instance) -> Result<Self>
async fn instance_get_active_async(instance: &Instance) -> Result<Self>
This method gets the active data (async)
Source§impl HyprDataVec<Workspace> for Workspaces
impl HyprDataVec<Workspace> for Workspaces
impl StructuralPartialEq for Workspace
Auto Trait Implementations§
impl Freeze for Workspace
impl RefUnwindSafe for Workspace
impl Send for Workspace
impl Sync for Workspace
impl Unpin for Workspace
impl UnsafeUnpin for Workspace
impl UnwindSafe for Workspace
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more