kernel_sidecar/jupyter/iopub_content/clear_output.rs
1/*
2https://jupyter-client.readthedocs.io/en/latest/messaging.html#clear-output
3*/
4
5use bytes::Bytes;
6
7use serde::Deserialize;
8
9#[derive(Deserialize, Debug)]
10pub struct ClearOutput {
11 pub wait: bool,
12}
13
14impl From<Bytes> for ClearOutput {
15 fn from(bytes: Bytes) -> Self {
16 serde_json::from_slice(&bytes).expect("Failed to deserialize ClearOutput")
17 }
18}