pub struct ExerciseSlideSubmission {
pub exercise_slide_id: Uuid,
pub exercise_task_id: Uuid,
pub answer_kind: Option<AnswerKind>,
pub data_json: Option<Value>,
pub data_files: Option<Vec<Uuid>>,
}Expand description
Body of POST exercises/{id}/submit. Plain JSON — no file parts, no archive: the previously
uploaded files named here are the answer.
Fields§
§exercise_slide_id: Uuid§exercise_task_id: Uuid§answer_kind: Option<AnswerKind>Absent means json. A client answering with files sends file.
data_json: Option<Value>The exercise service’s own JSON: the whole answer for a json answer, the service’s
metadata about the files for a file one.
data_files: Option<Vec<Uuid>>Ids from this exercise’s files endpoint, in the order they are to be graded and
displayed. A file answer must name at least one, and every id must have been uploaded by
this user for this exercise.
Trait Implementations§
Source§impl ComposeSchema for ExerciseSlideSubmission
impl ComposeSchema for ExerciseSlideSubmission
Source§impl Debug for ExerciseSlideSubmission
impl Debug for ExerciseSlideSubmission
Source§impl<'de> Deserialize<'de> for ExerciseSlideSubmission
impl<'de> Deserialize<'de> for ExerciseSlideSubmission
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 Serialize for ExerciseSlideSubmission
impl Serialize for ExerciseSlideSubmission
Auto Trait Implementations§
impl Freeze for ExerciseSlideSubmission
impl RefUnwindSafe for ExerciseSlideSubmission
impl Send for ExerciseSlideSubmission
impl Sync for ExerciseSlideSubmission
impl Unpin for ExerciseSlideSubmission
impl UnsafeUnpin for ExerciseSlideSubmission
impl UnwindSafe for ExerciseSlideSubmission
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§impl<T> ServiceExt for T
impl<T> ServiceExt for T
§fn map_response_body<F>(self, f: F) -> MapResponseBody<Self, F>where
Self: Sized,
fn map_response_body<F>(self, f: F) -> MapResponseBody<Self, F>where
Self: Sized,
Apply a transformation to the response body. Read more
§fn decompression(self) -> Decompression<Self>where
Self: Sized,
fn decompression(self) -> Decompression<Self>where
Self: Sized,
Decompress response bodies. Read more
§fn trace_for_http(self) -> Trace<Self, SharedClassifier<ServerErrorsAsFailures>>where
Self: Sized,
fn trace_for_http(self) -> Trace<Self, SharedClassifier<ServerErrorsAsFailures>>where
Self: Sized,
High level tracing that classifies responses using HTTP status codes. Read more
§fn trace_for_grpc(self) -> Trace<Self, SharedClassifier<GrpcErrorsAsFailures>>where
Self: Sized,
fn trace_for_grpc(self) -> Trace<Self, SharedClassifier<GrpcErrorsAsFailures>>where
Self: Sized,
High level tracing that classifies responses using gRPC headers. Read more