pub struct ExecResponse {
pub language: String,
pub version: String,
pub run: ExecResult,
pub compile: Option<ExecResult>,
pub status: u16,
}Expand description
A response returned by Piston when executing code.
Fields§
§language: StringThe language that was used.
version: StringThe version of the language that was used.
run: ExecResultThe result Piston sends detailing execution.
compile: Option<ExecResult>The optional result Piston sends detailing compilation. This
will be None for non-compiled languages.
status: u16The response status returned by Piston.
Implementations§
Source§impl ExecResponse
impl ExecResponse
Trait Implementations§
Source§impl Clone for ExecResponse
impl Clone for ExecResponse
Source§fn clone(&self) -> ExecResponse
fn clone(&self) -> ExecResponse
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 ExecResponse
impl Debug for ExecResponse
Source§impl<'de> Deserialize<'de> for ExecResponse
impl<'de> Deserialize<'de> for ExecResponse
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 Freeze for ExecResponse
impl RefUnwindSafe for ExecResponse
impl Send for ExecResponse
impl Sync for ExecResponse
impl Unpin for ExecResponse
impl UnwindSafe for ExecResponse
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