mirror of
https://github.com/hexedtech/codemp.git
synced 2025-04-08 20:41:33 +02:00
18 lines
428 B
Rust
18 lines
428 B
Rust
// Must be clonable, containing references to the actual state maybe? Or maybe give everyone an Arc, idk
|
|
#[derive(Debug)]
|
|
pub struct Workspace {
|
|
pub name: String,
|
|
pub content: String,
|
|
}
|
|
|
|
impl Workspace {
|
|
pub fn new(name: String, content: String) -> Self {
|
|
Workspace { name , content }
|
|
}
|
|
}
|
|
|
|
impl Default for Workspace {
|
|
fn default() -> Self {
|
|
Workspace { name: "fuck you".to_string() , content: "too".to_string() }
|
|
}
|
|
}
|