pub struct PromptRow {
id: String,
messages: Option<Vec<ChatCompletionRequestMessage>>,
requirement_name: String,
reason: String,
grade: String,
status: String,
}
Expand description
Schema for prompts
table
Fields§
§id: String
UUID of data entry
messages: Option<Vec<ChatCompletionRequestMessage>>
ChatGPT message prompt
requirement_name: String
Name of the autograder requirement
reason: String
Reasons for penalty
grade: String
Grade/out_of as a string
status: String
Status of prompt response generation - not_started, started, completed
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for PromptRow
impl Send for PromptRow
impl Sync for PromptRow
impl Unpin for PromptRow
impl UnwindSafe for PromptRow
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