pub struct CodeResult {
pub files: Option<Vec<CodeFile>>,
pub session_id: Option<String>,
pub stderr: Option<String>,
pub stdout: Option<String>,
}Fields§
§files: Option<Vec<CodeFile>>Files are what this run CREATED OR CHANGED, decided by mtime against a marker taken before the program started — so it is the run’s output, not a listing of the directory. Fetch each from GET /v1/exec/download/{session}/{id}.
session_id: Option<String>SessionID is the sandbox this run used — the one that was passed in, or the fresh one that was leased. Pass it to the next run to keep the filesystem.
stderr: Option<String>Stderr is what the program wrote to standard error, INCLUDING a compiler’s diagnostics and the trace of a program that exited non-zero. Its presence is not a failed call.
stdout: Option<String>Stdout is what the program wrote to standard output.
Implementations§
Source§impl CodeResult
impl CodeResult
pub fn new() -> CodeResult
Trait Implementations§
Source§impl Clone for CodeResult
impl Clone for CodeResult
Source§fn clone(&self) -> CodeResult
fn clone(&self) -> CodeResult
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CodeResult
impl Debug for CodeResult
Source§impl Default for CodeResult
impl Default for CodeResult
Source§fn default() -> CodeResult
fn default() -> CodeResult
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CodeResult
impl<'de> Deserialize<'de> for CodeResult
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 CodeResult
impl PartialEq for CodeResult
Source§impl Serialize for CodeResult
impl Serialize for CodeResult
impl StructuralPartialEq for CodeResult
Auto Trait Implementations§
impl Freeze for CodeResult
impl RefUnwindSafe for CodeResult
impl Send for CodeResult
impl Sync for CodeResult
impl Unpin for CodeResult
impl UnsafeUnpin for CodeResult
impl UnwindSafe for CodeResult
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