pub struct HistoryReply {
    pub history: Vec<HistoryEntry>,
    pub status: ReplyStatus,
    pub error: Option<Box<ReplyError>>,
}Expand description
A reply containing execution history.
See https://jupyter-client.readthedocs.io/en/latest/messaging.html#history
Fields§
§history: Vec<HistoryEntry>§status: ReplyStatus§error: Option<Box<ReplyError>>Implementations§
Source§impl HistoryReply
 
impl HistoryReply
Sourcepub fn as_child_of(&self, parent: &JupyterMessage) -> JupyterMessage
 
pub fn as_child_of(&self, parent: &JupyterMessage) -> JupyterMessage
Create a new JupyterMessage, assigning the parent for a HistoryReply message.
This method creates a new JupyterMessage with the right content, parent header, and zmq identities, making
it suitable for sending over ZeroMQ.
§Example
use jupyter_protocol::messaging::{JupyterMessage, JupyterMessageContent};
use jupyter_protocol::HistoryReply;
let parent_message = JupyterMessage::new(jupyter_protocol::UnknownMessage {
  msg_type: "example".to_string(),
  content: serde_json::json!({ "key": "value" }),
}, None);
let child_message = HistoryReply{
  ..Default::default()
}.as_child_of(&parent_message);
// Next you would send the `child_message` over the connection
Source§impl HistoryReply
 
impl HistoryReply
pub fn new(history: Vec<HistoryEntry>) -> Self
Trait Implementations§
Source§impl Clone for HistoryReply
 
impl Clone for HistoryReply
Source§fn clone(&self) -> HistoryReply
 
fn clone(&self) -> HistoryReply
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 HistoryReply
 
impl Debug for HistoryReply
Source§impl Default for HistoryReply
 
impl Default for HistoryReply
Source§impl<'de> Deserialize<'de> for HistoryReply
 
impl<'de> Deserialize<'de> for HistoryReply
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
Source§impl From<HistoryReply> for JupyterMessage
 
impl From<HistoryReply> for JupyterMessage
Source§impl From<HistoryReply> for JupyterMessageContent
 
impl From<HistoryReply> for JupyterMessageContent
Source§fn from(content: HistoryReply) -> Self
 
fn from(content: HistoryReply) -> Self
Create a new JupyterMessageContent for a HistoryReply.
Auto Trait Implementations§
impl Freeze for HistoryReply
impl RefUnwindSafe for HistoryReply
impl Send for HistoryReply
impl Sync for HistoryReply
impl Unpin for HistoryReply
impl UnwindSafe for HistoryReply
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