[][src]Struct tamasfe_lsp_types::TextDocumentItem

pub struct TextDocumentItem {
    pub uri: Url,
    pub language_id: String,
    pub version: i32,
    pub text: String,
}

An item to transfer a text document from the client to the server.

Fields

uri: Url

The text document's URI.

language_id: String

The text document's language identifier.

version: i32

The version number of this document (it will strictly increase after each change, including undo/redo).

text: String

The content of the opened text document.

Implementations

impl TextDocumentItem[src]

pub fn new(
    uri: Url,
    language_id: String,
    version: i32,
    text: String
) -> TextDocumentItem
[src]

Trait Implementations

impl Clone for TextDocumentItem[src]

impl Debug for TextDocumentItem[src]

impl<'de> Deserialize<'de> for TextDocumentItem[src]

impl Eq for TextDocumentItem[src]

impl PartialEq<TextDocumentItem> for TextDocumentItem[src]

impl Serialize for TextDocumentItem[src]

impl StructuralEq for TextDocumentItem[src]

impl StructuralPartialEq for TextDocumentItem[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.