Struct jupyter::ExecutionRequest
source · pub struct ExecutionRequest {
pub code: String,
pub silent: bool,
pub store_history: bool,
pub allow_stdin: bool,
pub stop_on_error: bool,
pub user_expressions: Value,
pub execution_count: u32,
pub header: JupyterMessage,
}
Expand description
The request to execute code
Fields§
§code: String
The code to execute
silent: bool
Whether to execute the code as quietly as possible
store_history: bool
Whether to store history
allow_stdin: bool
A mapping of names to expressions to be evaluated in the user’s dict.
stop_on_error: bool
A mapping of names to expressions to be evaluated in the user’s dict.
user_expressions: Value
A mapping of names to expressions to be evaluated in the user’s dict.
execution_count: u32
A mapping of names to expressions to be evaluated in the user’s dict.
header: JupyterMessage
Specify which request the execution results should be attached to
Implementations§
source§impl ExecutionRequest
impl ExecutionRequest
sourcepub fn as_reply(&self, success: bool, count: usize) -> ExecutionReply
pub fn as_reply(&self, success: bool, count: usize) -> ExecutionReply
Create a new execution request
sourcepub fn as_result(&self, mime: String, data: Value) -> ExecutionResult
pub fn as_result(&self, mime: String, data: Value) -> ExecutionResult
Create a new execution request
Trait Implementations§
source§impl Clone for ExecutionRequest
impl Clone for ExecutionRequest
source§fn clone(&self) -> ExecutionRequest
fn clone(&self) -> ExecutionRequest
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 ExecutionRequest
impl Debug for ExecutionRequest
source§impl<'de> Deserialize<'de> for ExecutionRequest
impl<'de> Deserialize<'de> for ExecutionRequest
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 RefUnwindSafe for ExecutionRequest
impl Send for ExecutionRequest
impl Sync for ExecutionRequest
impl Unpin for ExecutionRequest
impl UnwindSafe for ExecutionRequest
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