pub struct TextDocumentSyncOptions {
pub change: Option<TextDocumentSyncKind>,
pub open_close: Option<bool>,
pub will_save: Option<bool>,
pub will_save_until: Option<bool>,
pub save: Option<OneOf<bool, SaveOptions>>,
}Fields§
§change: Option<TextDocumentSyncKind>Change notifications are sent to the server. See TextDocumentSyncKind.None, TextDocumentSyncKind.Full and TextDocumentSyncKind.Incremental. If omitted it defaults to TextDocumentSyncKind.None.
open_close: Option<bool>Open and close notifications are sent to the server. If omitted open close notification should not be sent.
will_save: Option<bool>If present will save notifications are sent to the server. If omitted the notification should not be sent.
will_save_until: Option<bool>If present will save notifications are sent to the server. If omitted the notification should not be sent.
save: Option<OneOf<bool, SaveOptions>>If present save notifications are sent to the server. If omitted the notification should not be sent.
Trait Implementations§
Source§impl Clone for TextDocumentSyncOptions
impl Clone for TextDocumentSyncOptions
Source§fn clone(&self) -> TextDocumentSyncOptions
fn clone(&self) -> TextDocumentSyncOptions
Returns a duplicate 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 TextDocumentSyncOptions
impl Debug for TextDocumentSyncOptions
Source§impl Default for TextDocumentSyncOptions
impl Default for TextDocumentSyncOptions
Source§fn default() -> TextDocumentSyncOptions
fn default() -> TextDocumentSyncOptions
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TextDocumentSyncOptions
impl<'de> Deserialize<'de> for TextDocumentSyncOptions
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 TextDocumentSyncOptions
impl PartialEq for TextDocumentSyncOptions
Source§impl Serialize for TextDocumentSyncOptions
impl Serialize for TextDocumentSyncOptions
impl StructuralPartialEq for TextDocumentSyncOptions
Auto Trait Implementations§
impl Freeze for TextDocumentSyncOptions
impl RefUnwindSafe for TextDocumentSyncOptions
impl Send for TextDocumentSyncOptions
impl Sync for TextDocumentSyncOptions
impl Unpin for TextDocumentSyncOptions
impl UnwindSafe for TextDocumentSyncOptions
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