pub struct EvalStringCheckGrader {
pub name: String,
pub input: String,
pub reference: String,
pub operation: EvalStringCheckGraderOperation,
}
Expand description
A StringCheckGrader object that performs a string comparison between input and reference using a specified operation.
Fields§
§name: String
The name of the grader.
input: String
The input text. This may include template strings.
reference: String
The reference text. This may include template strings.
operation: EvalStringCheckGraderOperation
The string check operation to perform. One of eq
, ne
, like
, or ilike
.
Implementations§
Source§impl EvalStringCheckGrader
impl EvalStringCheckGrader
Sourcepub fn builder() -> EvalStringCheckGraderBuilder<((), (), (), ())>
pub fn builder() -> EvalStringCheckGraderBuilder<((), (), (), ())>
Create a builder for building EvalStringCheckGrader
.
On the builder, call .name(...)
, .input(...)
, .reference(...)
, .operation(...)
to set the values of the fields.
Finally, call .build()
to create the instance of EvalStringCheckGrader
.
Trait Implementations§
Source§impl Clone for EvalStringCheckGrader
impl Clone for EvalStringCheckGrader
Source§fn clone(&self) -> EvalStringCheckGrader
fn clone(&self) -> EvalStringCheckGrader
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 EvalStringCheckGrader
impl Debug for EvalStringCheckGrader
Source§impl<'de> Deserialize<'de> for EvalStringCheckGrader
impl<'de> Deserialize<'de> for EvalStringCheckGrader
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 EvalStringCheckGrader
impl PartialEq for EvalStringCheckGrader
Source§impl Serialize for EvalStringCheckGrader
impl Serialize for EvalStringCheckGrader
impl StructuralPartialEq for EvalStringCheckGrader
Auto Trait Implementations§
impl Freeze for EvalStringCheckGrader
impl RefUnwindSafe for EvalStringCheckGrader
impl Send for EvalStringCheckGrader
impl Sync for EvalStringCheckGrader
impl Unpin for EvalStringCheckGrader
impl UnwindSafe for EvalStringCheckGrader
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