Skip to main content

Mountain/RPC/Workspace/
WorkspaceService.rs

1
2//! File-and-workspace RPC service.
3
4use std::path::PathBuf;
5
6pub struct Struct {
7	#[allow(dead_code)]
8	workspace_root:Option<PathBuf>,
9}
10
11impl Struct {
12	pub fn new() -> Self { Self { workspace_root:None } }
13
14	pub fn with_root(Root:PathBuf) -> Self { Self { workspace_root:Some(Root) } }
15}
16
17impl Default for Struct {
18	fn default() -> Self { Self::new() }
19}