pub struct NotebookCellTextDocumentFilter {
pub notebook: Notebook,
pub language: Option<String>,
}
Expand description
A notebook cell text document filter denotes a cell text document by different properties.
@since 3.17.0
Fields§
§notebook: Notebook
A filter that matches against the notebook containing the notebook cell. If a string value is provided it matches against the notebook type. ‘*’ matches every notebook.
language: Option<String>
A language id like python
.
Will be matched against the language id of the notebook cell document. ‘*’ matches every language.
Trait Implementations§
source§impl Clone for NotebookCellTextDocumentFilter
impl Clone for NotebookCellTextDocumentFilter
source§fn clone(&self) -> NotebookCellTextDocumentFilter
fn clone(&self) -> NotebookCellTextDocumentFilter
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 NotebookCellTextDocumentFilter
impl<'de> Deserialize<'de> for NotebookCellTextDocumentFilter
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 NotebookCellTextDocumentFilter
impl PartialEq for NotebookCellTextDocumentFilter
source§fn eq(&self, other: &NotebookCellTextDocumentFilter) -> bool
fn eq(&self, other: &NotebookCellTextDocumentFilter) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for NotebookCellTextDocumentFilter
impl StructuralPartialEq for NotebookCellTextDocumentFilter
Auto Trait Implementations§
impl Freeze for NotebookCellTextDocumentFilter
impl RefUnwindSafe for NotebookCellTextDocumentFilter
impl Send for NotebookCellTextDocumentFilter
impl Sync for NotebookCellTextDocumentFilter
impl Unpin for NotebookCellTextDocumentFilter
impl UnwindSafe for NotebookCellTextDocumentFilter
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