Skip to main content

Mountain/RPC/Workspace/
WorkspaceService.rs

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