pub struct IsCompleteRequest {
pub code: String,
}
Expand description
A request to check if the code is complete and ready for execution.
See https://jupyter-client.readthedocs.io/en/latest/messaging.html#code-completeness
Fields§
§code: String
Implementations§
Source§impl IsCompleteRequest
impl IsCompleteRequest
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 IsCompleteRequest
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::IsCompleteRequest;
let parent_message = JupyterMessage::new(jupyter_protocol::UnknownMessage {
msg_type: "example".to_string(),
content: serde_json::json!({ "key": "value" }),
}, None);
let child_message = IsCompleteRequest{
..Default::default()
}.as_child_of(&parent_message);
// Next you would send the `child_message` over the connection
Trait Implementations§
Source§impl Clone for IsCompleteRequest
impl Clone for IsCompleteRequest
Source§fn clone(&self) -> IsCompleteRequest
fn clone(&self) -> IsCompleteRequest
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 IsCompleteRequest
impl Debug for IsCompleteRequest
Source§impl Default for IsCompleteRequest
impl Default for IsCompleteRequest
Source§fn default() -> IsCompleteRequest
fn default() -> IsCompleteRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for IsCompleteRequest
impl<'de> Deserialize<'de> for IsCompleteRequest
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<IsCompleteRequest> for JupyterMessage
impl From<IsCompleteRequest> for JupyterMessage
Source§impl From<IsCompleteRequest> for JupyterMessageContent
impl From<IsCompleteRequest> for JupyterMessageContent
Source§fn from(content: IsCompleteRequest) -> Self
fn from(content: IsCompleteRequest) -> Self
Create a new JupyterMessageContent
for a IsCompleteRequest
.
Auto Trait Implementations§
impl Freeze for IsCompleteRequest
impl RefUnwindSafe for IsCompleteRequest
impl Send for IsCompleteRequest
impl Sync for IsCompleteRequest
impl Unpin for IsCompleteRequest
impl UnwindSafe for IsCompleteRequest
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