pub enum CellOutput {
Stream {
name: StreamType,
text: String,
},
Data {
execution_count: i64,
data: Vec<OutputValue>,
metadata: LinkedHashMap<String, Value>,
},
Error {
ename: String,
evalue: String,
traceback: Vec<String>,
},
}
Expand description
Notebooks can save execution outputs in a variety of formats. Representing these makes it easy to replicate their types in the rendered output.
Variants§
Stream
Used for outputs generated by stdio/stderr. For rendering purposes this is the same as regular text.
Data
Complex output values (correspond to mime-types)
Fields
§
data: Vec<OutputValue>
The content of the output (may be multiple)
§
metadata: LinkedHashMap<String, Value>
Error
Trait Implementations§
Source§impl Clone for CellOutput
impl Clone for CellOutput
Source§fn clone(&self) -> CellOutput
fn clone(&self) -> CellOutput
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 CellOutput
impl Debug for CellOutput
Source§impl<'de> Deserialize<'de> for CellOutput
impl<'de> Deserialize<'de> for CellOutput
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 CellOutput
impl RefUnwindSafe for CellOutput
impl Send for CellOutput
impl Sync for CellOutput
impl Unpin for CellOutput
impl UnwindSafe for CellOutput
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