Struct Workspace
pub struct Workspace {
pub id: i32,
pub name: String,
pub monitor: String,
pub monitor_id: Option<i128>,
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: i32The workspace Id
name: StringThe workspace’s name
monitor: StringThe monitor the workspace is on
monitor_id: Option<i128>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§
§impl<'de> Deserialize<'de> for Workspace
impl<'de> Deserialize<'de> for Workspace
§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Workspace, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Workspace, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl HyprDataActive for Workspace
impl HyprDataActive for Workspace
§fn get_active() -> Result<Workspace, HyprError>
fn get_active() -> Result<Workspace, HyprError>
This method gets the active data
§async fn get_active_async() -> Result<Workspace, HyprError>
async fn get_active_async() -> Result<Workspace, HyprError>
This method gets the active data (async)
§impl HyprDataVec<Workspace> for Workspaces
impl HyprDataVec<Workspace> for Workspaces
§impl Serialize for Workspace
impl Serialize for Workspace
§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for Workspace
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 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,
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