use serde_json::Value;
pub trait Executed: Send {
fn mime_type(&self) -> String;
fn as_json(&self, context: &JupyterContext) -> Value;
}
#[derive(Copy, Debug, Clone)]
pub struct JupyterContext {
pub theme: JupyterTheme,
pub record_limit: usize,
pub object_limit: usize,
pub object_depth: usize,
}
#[derive(Copy, Debug, Clone)]
pub enum JupyterTheme {
Light,
Dark,
}
impl Default for JupyterContext {
fn default() -> Self {
Self { theme: JupyterTheme::Light, record_limit: 64, object_limit: 64, object_depth: 64 }
}
}