[][src]Struct tamasfe_lsp_types::OptionalVersionedTextDocumentIdentifier

pub struct OptionalVersionedTextDocumentIdentifier {
    pub uri: Url,
    pub version: Option<i32>,
}

An identifier which optionally denotes a specific version of a text document. This information usually flows from the server to the client

Fields

uri: Url

The text document's URI.

version: Option<i32>

The version number of this document. If an optional versioned text document identifier is sent from the server to the client and the file is not open in the editor (the server has not received an open notification before) the server can send null to indicate that the version is known and the content on disk is the master (as specified with document content ownership).

The version number of a document will increase after each change, including undo/redo. The number doesn't need to be consecutive.

Implementations

impl OptionalVersionedTextDocumentIdentifier[src]

Trait Implementations

impl Clone for OptionalVersionedTextDocumentIdentifier[src]

impl Debug for OptionalVersionedTextDocumentIdentifier[src]

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

impl Eq for OptionalVersionedTextDocumentIdentifier[src]

impl PartialEq<OptionalVersionedTextDocumentIdentifier> for OptionalVersionedTextDocumentIdentifier[src]

impl Serialize for OptionalVersionedTextDocumentIdentifier[src]

impl StructuralEq for OptionalVersionedTextDocumentIdentifier[src]

impl StructuralPartialEq for OptionalVersionedTextDocumentIdentifier[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.