pub struct CellCommon {
pub id: String,
pub metadata: CellMeta,
pub source: String,
}
Expand description
Stuff common to all cell types
Fields§
§id: String
§metadata: CellMeta
§source: String
Cell sources are stored as lists of source lines in the notebook file. It is parsed into a single string for convenience (and is deserialized to the list representation).
Trait Implementations§
Source§impl Clone for CellCommon
impl Clone for CellCommon
Source§fn clone(&self) -> CellCommon
fn clone(&self) -> CellCommon
Returns a copy 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 Debug for CellCommon
impl Debug for CellCommon
Source§impl<'de> Deserialize<'de> for CellCommon
impl<'de> Deserialize<'de> for CellCommon
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 CellCommon
impl RefUnwindSafe for CellCommon
impl Send for CellCommon
impl Sync for CellCommon
impl Unpin for CellCommon
impl UnwindSafe for CellCommon
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