srdusr
aboutsummaryrefslogtreecommitdiffstats
path: root/crates/core/src/workspace.rs
blob: 9988a393222854f762003e5aca1b777d8cb1ca78 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
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() }
    }
}