pub struct DidChangeNotebookDocumentParams {
pub notebook_document: VersionedNotebookDocumentIdentifier,
pub change: NotebookDocumentChangeEvent,
}
Expand description
The params sent in a change notebook document notification.
@since 3.17.0
Fields§
§notebook_document: VersionedNotebookDocumentIdentifier
The notebook document that did change. The version number points to the version after all provided changes have been applied.
change: NotebookDocumentChangeEvent
The actual changes to the notebook document.
The change describes single state change to the notebook document. So it moves a notebook document, its cells and its cell text document contents from state S to S’.
To mirror the content of a notebook using change events use the following approach:
- start with the same initial content
- apply the ‘notebookDocument/didChange’ notifications in the order you receive them.
Trait Implementations§
source§impl Clone for DidChangeNotebookDocumentParams
impl Clone for DidChangeNotebookDocumentParams
source§fn clone(&self) -> DidChangeNotebookDocumentParams
fn clone(&self) -> DidChangeNotebookDocumentParams
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<'de> Deserialize<'de> for DidChangeNotebookDocumentParams
impl<'de> Deserialize<'de> for DidChangeNotebookDocumentParams
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 DidChangeNotebookDocumentParams
impl PartialEq for DidChangeNotebookDocumentParams
source§fn eq(&self, other: &DidChangeNotebookDocumentParams) -> bool
fn eq(&self, other: &DidChangeNotebookDocumentParams) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for DidChangeNotebookDocumentParams
impl StructuralPartialEq for DidChangeNotebookDocumentParams
Auto Trait Implementations§
impl !Freeze for DidChangeNotebookDocumentParams
impl !RefUnwindSafe for DidChangeNotebookDocumentParams
impl Send for DidChangeNotebookDocumentParams
impl Sync for DidChangeNotebookDocumentParams
impl Unpin for DidChangeNotebookDocumentParams
impl UnwindSafe for DidChangeNotebookDocumentParams
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