Enum languageserver_types::TextDocumentSaveReason[][src]

pub enum TextDocumentSaveReason {
    Manual,
    AfterDelay,
    FocusOut,
}

Represents reasons why a text document is saved.

Variants

Manually triggered, e.g. by the user pressing save, by starting debugging, or by an API call.

Automatic after a delay.

When the editor lost focus.

Trait Implementations

impl Clone for TextDocumentSaveReason
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for TextDocumentSaveReason
[src]

impl Debug for TextDocumentSaveReason
[src]

Formats the value using the given formatter. Read more

impl Eq for TextDocumentSaveReason
[src]

impl PartialEq for TextDocumentSaveReason
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

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

Deserialize this value from the given Serde deserializer. Read more

impl Serialize for TextDocumentSaveReason
[src]

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations