pub enum CellType {
Code,
Markdown,
Raw,
}Expand description
The kind of cell insert_cell builds. A code cell gets the executable
scaffolding (execution_count: null, outputs: []); a markdown or raw
cell carries only source. Anything the caller passes that is not markdown
or raw is treated as code (the safe, executable default).
Variants§
Code
An executable code cell (execution_count: null, empty outputs).
Markdown
A markdown prose cell.
Raw
A raw (verbatim) cell.
Implementations§
Source§impl CellType
impl CellType
Sourcepub fn from_str_lenient(s: &str) -> Self
pub fn from_str_lenient(s: &str) -> Self
Map a free-form string (an MCP argument) to a CellType, defaulting to
CellType::Code for anything unrecognized — the executable default the
agent reaches for most.
Trait Implementations§
impl Copy for CellType
impl Eq for CellType
impl StructuralPartialEq for CellType
Auto Trait Implementations§
impl Freeze for CellType
impl RefUnwindSafe for CellType
impl Send for CellType
impl Sync for CellType
impl Unpin for CellType
impl UnsafeUnpin for CellType
impl UnwindSafe for CellType
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