pub struct Workspace {
pub id: i64,
pub name: String,
pub output: String,
pub focused: bool,
pub visible: bool,
pub urgent: bool,
}Expand description
One of Sway’s workspaces, as GET_WORKSPACES describes it.
Fields§
§id: i64Sway’s id for it, which stays the same while it exists: the key to
give children_keyed.
name: StringIts name, such as 1 or 3:web.
output: StringThe output it is on, such as DP-1.
focused: boolWhether it has the keyboard focus.
visible: boolWhether it is shown on its output.
urgent: boolWhether a window on it asks for attention.
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
impl StructuralPartialEq for Workspace
Auto Trait Implementations§
impl Forget for Workspace
impl Freeze for Workspace
impl Move 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