pub struct ExecuteRequest {
pub channel: Channel,
pub mode: Mode,
pub edition: Edition,
pub crate_type: CrateType,
pub tests: bool,
pub backtrace: bool,
pub code: String,
}Expand description
Request structure to execute Rust code on the playground.
Specifies compilation parameters and the source code to run.
Fields§
§channel: ChannelThe Rust release channel to use (stable, beta, nightly).
mode: ModeThe compilation mode: debug or release.
edition: EditionThe Rust edition to compile and run with (2015, 2018, 2021, 2024).
crate_type: CrateTypeThe crate type: binary or library.
tests: boolWhether to include test code during execution.
backtrace: boolWhether to enable backtrace output on runtime errors.
code: StringThe Rust source code to compile and execute.
Implementations§
Source§impl ExecuteRequest
impl ExecuteRequest
Sourcepub fn new(
channel: Channel,
mode: Mode,
edition: Edition,
crate_type: CrateType,
tests: bool,
backtrace: bool,
code: String,
) -> Self
pub fn new( channel: Channel, mode: Mode, edition: Edition, crate_type: CrateType, tests: bool, backtrace: bool, code: String, ) -> Self
Creates a new ExecuteRequest.
§Arguments
channel- Rust release channel.mode- Compilation mode (debug/release).edition- Rust edition.crate_type- Crate type (binary or library).tests- Whether to run test code.backtrace- Whether to enable backtraces.code- Source code to execute.
§Returns
An ExecuteRequest initialized with the given parameters.
Trait Implementations§
Source§impl Clone for ExecuteRequest
impl Clone for ExecuteRequest
Source§fn clone(&self) -> ExecuteRequest
fn clone(&self) -> ExecuteRequest
Returns a duplicate 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 ExecuteRequest
impl Debug for ExecuteRequest
Source§impl Default for ExecuteRequest
impl Default for ExecuteRequest
Source§impl<'de> Deserialize<'de> for ExecuteRequest
impl<'de> Deserialize<'de> for ExecuteRequest
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 PartialEq for ExecuteRequest
impl PartialEq for ExecuteRequest
Source§impl Serialize for ExecuteRequest
impl Serialize for ExecuteRequest
impl Eq for ExecuteRequest
impl StructuralPartialEq for ExecuteRequest
Auto Trait Implementations§
impl Freeze for ExecuteRequest
impl RefUnwindSafe for ExecuteRequest
impl Send for ExecuteRequest
impl Sync for ExecuteRequest
impl Unpin for ExecuteRequest
impl UnwindSafe for ExecuteRequest
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
Source§impl<T> CloneDebuggableStorage for Twhere
T: DebuggableStorage + Clone,
impl<T> CloneDebuggableStorage for Twhere
T: DebuggableStorage + Clone,
fn clone_storage(&self) -> Box<dyn CloneDebuggableStorage>
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> CloneableStorage for T
impl<T> CloneableStorage for T
fn clone_storage(&self) -> Box<dyn CloneableStorage>
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.