pub struct EvalPythonGrader {
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§
§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.
Implementations§
Source§impl EvalPythonGrader
impl EvalPythonGrader
Sourcepub fn builder() -> EvalPythonGraderBuilder<((), (), (), ())>
pub fn builder() -> EvalPythonGraderBuilder<((), (), (), ())>
Create a builder for building EvalPythonGrader
.
On the builder, call .name(...)
, .source(...)
, .pass_threshold(...)
(optional), .image_tag(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of EvalPythonGrader
.
Trait Implementations§
Source§impl Clone for EvalPythonGrader
impl Clone for EvalPythonGrader
Source§fn clone(&self) -> EvalPythonGrader
fn clone(&self) -> EvalPythonGrader
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 EvalPythonGrader
impl Debug for EvalPythonGrader
Source§impl<'de> Deserialize<'de> for EvalPythonGrader
impl<'de> Deserialize<'de> for EvalPythonGrader
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 EvalPythonGrader
impl PartialEq for EvalPythonGrader
Source§impl Serialize for EvalPythonGrader
impl Serialize for EvalPythonGrader
impl StructuralPartialEq for EvalPythonGrader
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