bsp_types/
bt_identifier.rs

1use lsp_types::Url;
2use serde::{Deserialize, Serialize};
3
4#[derive(Debug, Serialize, Deserialize, PartialEq, Eq, Clone)]
5pub struct BuildTargetIdentifier {
6    uri: Url,
7}
8
9impl BuildTargetIdentifier {
10    pub fn new(uri: Url) -> Self {
11        Self { uri }
12    }
13
14    /// Get a reference to the bsp build target identifier's uri.
15    pub fn uri(&self) -> &str {
16        self.uri.as_ref()
17    }
18
19    /// Set the bsp build target identifier's uri.
20    pub fn set_uri(&mut self, uri: Url) {
21        self.uri = uri;
22    }
23}