pub struct EvalPythonGrader {
pub type: String,
pub name: String,
pub source: String,
pub pass_threshold: Option<f64>,
pub image_tag: Option<String>,
}
Expand description
A PythonGrader object that runs a python script on the input.
Fields§
§type: String
The object type, which is always python
.
name: String
The name of the grader.
source: String
The source code of the python script.
pass_threshold: Option<f64>
The threshold for the score.
image_tag: Option<String>
The image tag to use for the python script.
Trait Implementations§
Source§impl Clone for EvalPythonGrader
impl Clone for EvalPythonGrader
Source§fn clone(&self) -> EvalPythonGrader
fn clone(&self) -> EvalPythonGrader
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 EvalPythonGrader
impl Debug for EvalPythonGrader
Source§impl Default for EvalPythonGrader
impl Default for EvalPythonGrader
Source§fn default() -> EvalPythonGrader
fn default() -> EvalPythonGrader
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for EvalPythonGrader
impl RefUnwindSafe for EvalPythonGrader
impl Send for EvalPythonGrader
impl Sync for EvalPythonGrader
impl Unpin for EvalPythonGrader
impl UnwindSafe for EvalPythonGrader
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