mirror of
https://gitlab.com/hyask/swaysome.git
synced 2025-12-10 07:44:43 +01:00
Add debugging capabilities to the structs
This commit is contained in:
parent
c3adaa58ff
commit
38d685b252
1 changed files with 4 additions and 0 deletions
|
|
@ -20,12 +20,14 @@ const GET_WORKSPACES: u32 = 1;
|
|||
const SUBSCRIBE: u32 = 2;
|
||||
const GET_OUTPUTS: u32 = 3;
|
||||
|
||||
#[derive(Debug)]
|
||||
#[derive(Serialize, Deserialize)]
|
||||
struct WorkspaceRect {
|
||||
x: usize,
|
||||
y: usize,
|
||||
}
|
||||
|
||||
#[derive(Debug)]
|
||||
#[derive(Serialize, Deserialize)]
|
||||
struct Workspace {
|
||||
num: usize,
|
||||
|
|
@ -36,6 +38,7 @@ struct Workspace {
|
|||
output: String,
|
||||
}
|
||||
|
||||
#[derive(Debug)]
|
||||
#[derive(Serialize, Deserialize)]
|
||||
struct OutputMode {
|
||||
width: usize,
|
||||
|
|
@ -43,6 +46,7 @@ struct OutputMode {
|
|||
refresh: usize,
|
||||
}
|
||||
|
||||
#[derive(Debug)]
|
||||
#[derive(Serialize, Deserialize)]
|
||||
struct Output {
|
||||
name: String,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue