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: NotebookA 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 duplicate 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<NotebookCellTextDocumentFilter, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<NotebookCellTextDocumentFilter, <__D as Deserializer<'de>>::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
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for NotebookCellTextDocumentFilter
impl Serialize for NotebookCellTextDocumentFilter
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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