1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
/// A literal to identify a text document in the client. #[derive(Debug, Serialize)] pub struct TextDocumentIdentifier { /// The text document's uri. pub uri: String, } /// The TextDocumentIdentifier namespace provides helper functions to work with /// [TextDocumentIdentifier](#TextDocumentIdentifier) literals. impl TextDocumentIdentifier { /// Creates a new TextDocumentIdentifier literal. /// @param uri The document's uri. pub fn create(uri: String) -> Self { TextDocumentIdentifier { uri } } }