pub struct EvalGraderPython {
pub name: String,
pub source: String,
pub image_tag: Option<String>,
pub pass_threshold: Option<Number>,
}
Fields§
§name: String
The name of the grader.
source: String
The source code of the python script.
image_tag: Option<String>
The image tag to use for the python script.
pass_threshold: Option<Number>
The threshold for the score.
Implementations§
Source§impl EvalGraderPython
impl EvalGraderPython
Sourcepub fn builder() -> EvalGraderPythonBuilder<((), (), (), ())>
pub fn builder() -> EvalGraderPythonBuilder<((), (), (), ())>
Create a builder for building EvalGraderPython
.
On the builder, call .name(...)
, .source(...)
, .image_tag(...)
(optional), .pass_threshold(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of EvalGraderPython
.
Trait Implementations§
Source§impl Clone for EvalGraderPython
impl Clone for EvalGraderPython
Source§fn clone(&self) -> EvalGraderPython
fn clone(&self) -> EvalGraderPython
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for EvalGraderPython
impl Debug for EvalGraderPython
Source§impl<'de> Deserialize<'de> for EvalGraderPython
impl<'de> Deserialize<'de> for EvalGraderPython
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 EvalGraderPython
impl PartialEq for EvalGraderPython
Source§impl Serialize for EvalGraderPython
impl Serialize for EvalGraderPython
impl StructuralPartialEq for EvalGraderPython
Auto Trait Implementations§
impl Freeze for EvalGraderPython
impl RefUnwindSafe for EvalGraderPython
impl Send for EvalGraderPython
impl Sync for EvalGraderPython
impl Unpin for EvalGraderPython
impl UnwindSafe for EvalGraderPython
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