#[non_exhaustive]pub enum TextDocumentSyncKind {
Full,
Incremental,
}Available on crate feature
unstable_nes only.Expand description
How the agent wants document changes delivered.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Full
Client sends the entire file content on each change.
Incremental
Client sends only the changed ranges.
Trait Implementations§
Source§impl Clone for TextDocumentSyncKind
impl Clone for TextDocumentSyncKind
Source§fn clone(&self) -> TextDocumentSyncKind
fn clone(&self) -> TextDocumentSyncKind
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 TextDocumentSyncKind
impl Debug for TextDocumentSyncKind
Source§impl<'de> Deserialize<'de> for TextDocumentSyncKind
impl<'de> Deserialize<'de> for TextDocumentSyncKind
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
impl Eq for TextDocumentSyncKind
Source§impl IntoV2 for TextDocumentSyncKind
Available on crate feature unstable_protocol_v2 only.
impl IntoV2 for TextDocumentSyncKind
Available on crate feature
unstable_protocol_v2 only.Source§impl JsonSchema for TextDocumentSyncKind
impl JsonSchema for TextDocumentSyncKind
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for TextDocumentSyncKind
impl PartialEq for TextDocumentSyncKind
Source§fn eq(&self, other: &TextDocumentSyncKind) -> bool
fn eq(&self, other: &TextDocumentSyncKind) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for TextDocumentSyncKind
impl Serialize for TextDocumentSyncKind
impl StructuralPartialEq for TextDocumentSyncKind
Auto Trait Implementations§
impl Freeze for TextDocumentSyncKind
impl RefUnwindSafe for TextDocumentSyncKind
impl Send for TextDocumentSyncKind
impl Sync for TextDocumentSyncKind
impl Unpin for TextDocumentSyncKind
impl UnsafeUnpin for TextDocumentSyncKind
impl UnwindSafe for TextDocumentSyncKind
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