Enum lsp_types::NotebookSelector
source · pub enum NotebookSelector {
ByNotebook {
notebook: Notebook,
cells: Option<Vec<NotebookCellSelector>>,
},
ByCells {
notebook: Option<Notebook>,
cells: Vec<NotebookCellSelector>,
},
}
Variants§
ByNotebook
Fields
§
notebook: Notebook
The notebook to be synced. If a string value is provided it matches against the notebook type. ‘*’ matches every notebook.
§
cells: Option<Vec<NotebookCellSelector>>
The cells of the matching notebook to be synced.
ByCells
Trait Implementations§
source§impl Clone for NotebookSelector
impl Clone for NotebookSelector
source§fn clone(&self) -> NotebookSelector
fn clone(&self) -> NotebookSelector
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 NotebookSelector
impl Debug for NotebookSelector
source§impl<'de> Deserialize<'de> for NotebookSelector
impl<'de> Deserialize<'de> for NotebookSelector
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 NotebookSelector
impl PartialEq for NotebookSelector
source§fn eq(&self, other: &NotebookSelector) -> bool
fn eq(&self, other: &NotebookSelector) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for NotebookSelector
impl Serialize for NotebookSelector
impl Eq for NotebookSelector
impl StructuralPartialEq for NotebookSelector
Auto Trait Implementations§
impl Freeze for NotebookSelector
impl RefUnwindSafe for NotebookSelector
impl Send for NotebookSelector
impl Sync for NotebookSelector
impl Unpin for NotebookSelector
impl UnwindSafe for NotebookSelector
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