pub struct TextDocumentSyncOptions {
pub open_close: Option<bool>,
pub change: Option<TextDocumentSyncKind>,
pub will_save: Option<bool>,
pub will_save_wait_until: Option<bool>,
pub save: Option<Save>,
}Fields§
§open_close: Option<bool>Open and close notifications are sent to the server. If omitted open close notification should not be sent.
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.
will_save: Option<bool>If present will save notifications are sent to the server. If omitted the notification should not be sent.
will_save_wait_until: Option<bool>If present will save wait until requests are sent to the server. If omitted the request should not be sent.
save: Option<Save>If present save notifications are sent to the server. If omitted the notification should not be sent.
Implementations§
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 (const: unstable) · 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 From<TextDocumentSyncOptions> for TextDocumentSync
impl From<TextDocumentSyncOptions> for TextDocumentSync
Source§fn from(v: TextDocumentSyncOptions) -> Self
fn from(v: TextDocumentSyncOptions) -> Self
Converts to this type from the input type.
Source§impl Hash for TextDocumentSyncOptions
impl Hash for TextDocumentSyncOptions
Source§impl PartialEq for TextDocumentSyncOptions
impl PartialEq for TextDocumentSyncOptions
Source§fn eq(&self, other: &TextDocumentSyncOptions) -> bool
fn eq(&self, other: &TextDocumentSyncOptions) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for TextDocumentSyncOptions
impl Serialize for TextDocumentSyncOptions
impl Copy for TextDocumentSyncOptions
impl Eq 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 UnsafeUnpin 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