pub struct Sample {
pub wall_ms: u64,
pub exit_code: i32,
pub warmup: bool,
pub timed_out: bool,
pub cpu_ms: Option<u64>,
pub page_faults: Option<u64>,
pub ctx_switches: Option<u64>,
pub max_rss_kb: Option<u64>,
pub binary_bytes: Option<u64>,
pub stdout: Option<String>,
pub stderr: Option<String>,
}Fields§
§wall_ms: u64§exit_code: i32§warmup: bool§timed_out: bool§cpu_ms: Option<u64>CPU time (user + system) in milliseconds (Unix only).
page_faults: Option<u64>Major page faults (Unix only).
ctx_switches: Option<u64>Voluntary + involuntary context switches (Unix only).
max_rss_kb: Option<u64>§binary_bytes: Option<u64>Size of executed binary in bytes (best-effort).
stdout: Option<String>Truncated stdout (bytes interpreted as UTF-8 lossily).
stderr: Option<String>Truncated stderr (bytes interpreted as UTF-8 lossily).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Sample
impl<'de> Deserialize<'de> for Sample
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 JsonSchema for Sample
impl JsonSchema for Sample
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreimpl StructuralPartialEq for Sample
Auto Trait Implementations§
impl Freeze for Sample
impl RefUnwindSafe for Sample
impl Send for Sample
impl Sync for Sample
impl Unpin for Sample
impl UnsafeUnpin for Sample
impl UnwindSafe for Sample
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