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