pub struct CellInfo {
pub index: usize,
pub cell_type: String,
pub source: String,
pub has_output: bool,
}Expand description
One cell’s reviewable summary, returned by read_notebook.
Deliberately flat and serde-serializable so the MCP notebook_read handler
can ferry the Vec<CellInfo> straight across the JSON-RPC boundary as pretty
JSON — a human-scannable table of what the notebook holds.
Fields§
§index: usizeZero-based position of the cell in the notebook’s cells array.
cell_type: StringThe cell kind: code, markdown, or raw.
source: StringThe cell’s source, joined into one string (nbformat stores source as
either a single string or an array of line-strings; both fold to this).
has_output: booltrue if a code cell has at least one entry in its outputs array.
Trait Implementations§
impl Eq for CellInfo
impl StructuralPartialEq for CellInfo
Auto Trait Implementations§
impl Freeze for CellInfo
impl RefUnwindSafe for CellInfo
impl Send for CellInfo
impl Sync for CellInfo
impl Unpin for CellInfo
impl UnsafeUnpin for CellInfo
impl UnwindSafe for CellInfo
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