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: StringUUID of data entry
messages: Option<Vec<ChatCompletionRequestMessage>>ChatGPT message prompt
requirement_name: StringName of the autograder requirement
reason: StringReasons for penalty
grade: StringGrade/out_of as a string
status: StringStatus 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