srdusr
aboutsummaryrefslogtreecommitdiffstats
path: root/crates/core/src/workspace.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/core/src/workspace.rs')
-rw-r--r--crates/core/src/workspace.rs14
1 files changed, 14 insertions, 0 deletions
diff --git a/crates/core/src/workspace.rs b/crates/core/src/workspace.rs
new file mode 100644
index 0000000..9988a39
--- /dev/null
+++ b/crates/core/src/workspace.rs
@@ -0,0 +1,14 @@
+pub type WorkspaceId = usize;
+
+#[derive(Debug, Clone)]
+pub struct Workspace {
+ pub id: WorkspaceId,
+ pub name: String,
+ pub layout: String,
+}
+
+impl Workspace {
+ pub fn new(id: WorkspaceId, name: impl Into<String>, layout: impl Into<String>) -> Self {
+ Self { id, name: name.into(), layout: layout.into() }
+ }
+}