pub struct UserExerciseStateUpdateAlreadyLoadedRequiredDataPeerReviewInformation {
pub given_peer_or_self_review_submissions: Option<Vec<PeerOrSelfReviewSubmission>>,
pub given_self_review_submission: Option<Option<PeerOrSelfReviewSubmission>>,
pub latest_exercise_slide_submission: Option<ExerciseSlideSubmission>,
pub latest_exercise_slide_submission_received_peer_or_self_review_question_submissions: Option<Vec<PeerOrSelfReviewQuestionSubmission>>,
pub peer_review_queue_entry: Option<Option<PeerReviewQueueEntry>>,
pub peer_or_self_review_config: Option<PeerOrSelfReviewConfig>,
pub peer_or_self_review_questions: Option<Vec<PeerOrSelfReviewQuestion>>,
}
Expand description
Same as UserExerciseStateUpdateRequiredDataPeerReviewInformation
but public and everything is optional. Can be used to pass some already loaded dependencies to the update function.
Fields§
§given_peer_or_self_review_submissions: Option<Vec<PeerOrSelfReviewSubmission>>
§given_self_review_submission: Option<Option<PeerOrSelfReviewSubmission>>
§latest_exercise_slide_submission: Option<ExerciseSlideSubmission>
§latest_exercise_slide_submission_received_peer_or_self_review_question_submissions: Option<Vec<PeerOrSelfReviewQuestionSubmission>>
§peer_review_queue_entry: Option<Option<PeerReviewQueueEntry>>
The outer option is to indicate whether this cached value is provided or not, and the inner option is to tell whether the answer has been added to the the peer review queue or not
peer_or_self_review_config: Option<PeerOrSelfReviewConfig>
§peer_or_self_review_questions: Option<Vec<PeerOrSelfReviewQuestion>>
Trait Implementations§
Source§impl Default for UserExerciseStateUpdateAlreadyLoadedRequiredDataPeerReviewInformation
impl Default for UserExerciseStateUpdateAlreadyLoadedRequiredDataPeerReviewInformation
Source§fn default() -> UserExerciseStateUpdateAlreadyLoadedRequiredDataPeerReviewInformation
fn default() -> UserExerciseStateUpdateAlreadyLoadedRequiredDataPeerReviewInformation
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for UserExerciseStateUpdateAlreadyLoadedRequiredDataPeerReviewInformation
impl RefUnwindSafe for UserExerciseStateUpdateAlreadyLoadedRequiredDataPeerReviewInformation
impl Send for UserExerciseStateUpdateAlreadyLoadedRequiredDataPeerReviewInformation
impl Sync for UserExerciseStateUpdateAlreadyLoadedRequiredDataPeerReviewInformation
impl Unpin for UserExerciseStateUpdateAlreadyLoadedRequiredDataPeerReviewInformation
impl UnwindSafe for UserExerciseStateUpdateAlreadyLoadedRequiredDataPeerReviewInformation
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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