pub enum TextDocumentSaveReason {
Manual = 1,
AfterDelay = 2,
FocusOut = 3,
}
Expand description
Represents reasons why a text document is saved.
Variants§
Manual = 1
Manually triggered, e.g. by the user pressing save, by starting debugging, or by an API call.
AfterDelay = 2
Automatic after a delay.
FocusOut = 3
When the editor lost focus.
Trait Implementations§
Source§impl Clone for TextDocumentSaveReason
impl Clone for TextDocumentSaveReason
Source§fn clone(&self) -> TextDocumentSaveReason
fn clone(&self) -> TextDocumentSaveReason
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for TextDocumentSaveReason
impl Debug for TextDocumentSaveReason
Source§impl<'de> Deserialize<'de> for TextDocumentSaveReason
impl<'de> Deserialize<'de> for TextDocumentSaveReason
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for TextDocumentSaveReason
impl PartialEq for TextDocumentSaveReason
Source§impl Serialize for TextDocumentSaveReason
impl Serialize for TextDocumentSaveReason
impl Copy for TextDocumentSaveReason
impl Eq for TextDocumentSaveReason
impl StructuralPartialEq for TextDocumentSaveReason
Auto Trait Implementations§
impl Freeze for TextDocumentSaveReason
impl RefUnwindSafe for TextDocumentSaveReason
impl Send for TextDocumentSaveReason
impl Sync for TextDocumentSaveReason
impl Unpin for TextDocumentSaveReason
impl UnwindSafe for TextDocumentSaveReason
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more