pub struct NotebookCell {
pub kind: NotebookCellKind,
pub document: Uri,
pub metadata: Option<LspObject>,
pub execution_summary: Option<ExecutionSummary>,
}Expand description
A notebook cell.
A cell’s document URI must be unique across ALL notebook cells and can therefore be used to uniquely identify a notebook cell or the cell’s text document.
@since 3.17.0
Fields§
§kind: NotebookCellKindThe cell’s kind
document: UriThe URI of the cell’s text document content.
metadata: Option<LspObject>Additional metadata stored with the cell.
Note: should always be an object literal (e.g. LSPObject)
execution_summary: Option<ExecutionSummary>Additional execution summary information if supported by the client.
Implementations§
Source§impl NotebookCell
impl NotebookCell
pub const fn new( kind: NotebookCellKind, document: Uri, metadata: Option<LspObject>, execution_summary: Option<ExecutionSummary>, ) -> Self
Trait Implementations§
Source§impl Clone for NotebookCell
impl Clone for NotebookCell
Source§fn clone(&self) -> NotebookCell
fn clone(&self) -> NotebookCell
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 NotebookCell
impl Debug for NotebookCell
Source§impl<'de> Deserialize<'de> for NotebookCell
impl<'de> Deserialize<'de> for NotebookCell
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 NotebookCell
impl PartialEq for NotebookCell
Source§fn eq(&self, other: &NotebookCell) -> bool
fn eq(&self, other: &NotebookCell) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for NotebookCell
impl Serialize for NotebookCell
impl Eq for NotebookCell
impl StructuralPartialEq for NotebookCell
Auto Trait Implementations§
impl Freeze for NotebookCell
impl RefUnwindSafe for NotebookCell
impl Send for NotebookCell
impl Sync for NotebookCell
impl Unpin for NotebookCell
impl UnsafeUnpin for NotebookCell
impl UnwindSafe for NotebookCell
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