Struct lsp_types::NotebookDocumentSyncOptions
source · pub struct NotebookDocumentSyncOptions {
pub notebook_selector: Vec<NotebookSelector>,
pub save: Option<bool>,
}
Expand description
Options specific to a notebook plus its cells to be synced to the server.
If a selector provides a notebook document filter but no cell selector all cells of a matching notebook document will be synced.
If a selector provides no notebook document filter but only a cell selector all notebook documents that contain at least one matching cell will be synced.
@since 3.17.0
Fields§
§notebook_selector: Vec<NotebookSelector>
The notebooks to be synced
save: Option<bool>
Whether save notification should be forwarded to
the server. Will only be honored if mode === notebook
.
Trait Implementations§
source§impl Clone for NotebookDocumentSyncOptions
impl Clone for NotebookDocumentSyncOptions
source§fn clone(&self) -> NotebookDocumentSyncOptions
fn clone(&self) -> NotebookDocumentSyncOptions
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 NotebookDocumentSyncOptions
impl Debug for NotebookDocumentSyncOptions
source§impl<'de> Deserialize<'de> for NotebookDocumentSyncOptions
impl<'de> Deserialize<'de> for NotebookDocumentSyncOptions
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 NotebookDocumentSyncOptions
impl PartialEq for NotebookDocumentSyncOptions
source§fn eq(&self, other: &NotebookDocumentSyncOptions) -> bool
fn eq(&self, other: &NotebookDocumentSyncOptions) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for NotebookDocumentSyncOptions
impl StructuralPartialEq for NotebookDocumentSyncOptions
Auto Trait Implementations§
impl Freeze for NotebookDocumentSyncOptions
impl RefUnwindSafe for NotebookDocumentSyncOptions
impl Send for NotebookDocumentSyncOptions
impl Sync for NotebookDocumentSyncOptions
impl Unpin for NotebookDocumentSyncOptions
impl UnwindSafe for NotebookDocumentSyncOptions
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