pub struct Notebook {
pub metadata: NotebookMeta,
pub nbformat: i64,
pub nbformat_minor: i64,
pub cells: Vec<Cell>,
}
Expand description
Top-level notebook structure (the type is a mostly complete implementation of the official notebook specification (http://ipython.org/ipython-doc/3/notebook/nbformat.html).
Fields§
§metadata: NotebookMeta
Information about the kernel and cell language.
nbformat: i64
Notebook format (4 is the modern version)
nbformat_minor: i64
Minor version
cells: Vec<Cell>
The actual content (cells) of the notebook
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Notebook
impl<'de> Deserialize<'de> for Notebook
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
Auto Trait Implementations§
impl Freeze for Notebook
impl RefUnwindSafe for Notebook
impl Send for Notebook
impl Sync for Notebook
impl Unpin for Notebook
impl UnwindSafe for Notebook
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