pub struct StudentSubmission {
Show 17 fields pub alternate_link: Option<String>, pub assigned_grade: Option<f64>, pub assignment_submission: Option<AssignmentSubmission>, pub associated_with_developer: Option<bool>, pub course_id: Option<String>, pub course_work_id: Option<String>, pub course_work_type: Option<String>, pub creation_time: Option<DateTime<Utc>>, pub draft_grade: Option<f64>, pub id: Option<String>, pub late: Option<bool>, pub multiple_choice_submission: Option<MultipleChoiceSubmission>, pub short_answer_submission: Option<ShortAnswerSubmission>, pub state: Option<String>, pub submission_history: Option<Vec<SubmissionHistory>>, pub update_time: Option<DateTime<Utc>>, pub user_id: Option<String>,
}
Expand description

Student submission for course work. StudentSubmission items are generated when a CourseWork item is created. Student submissions that have never been accessed (i.e. with state = NEW) may not have a creation time or update time.

§Activities

This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).

Fields§

§alternate_link: Option<String>

Absolute link to the submission in the Classroom web UI. Read-only.

§assigned_grade: Option<f64>

Optional grade. If unset, no grade was set. This value must be non-negative. Decimal (that is, non-integer) values are allowed, but are rounded to two decimal places. This may be modified only by course teachers.

§assignment_submission: Option<AssignmentSubmission>

Submission content when course_work_type is ASSIGNMENT. Students can modify this content using ModifyAttachments.

§associated_with_developer: Option<bool>

Whether this student submission is associated with the Developer Console project making the request. See CreateCourseWork for more details. Read-only.

§course_id: Option<String>

Identifier of the course. Read-only.

§course_work_id: Option<String>

Identifier for the course work this corresponds to. Read-only.

§course_work_type: Option<String>

Type of course work this submission is for. Read-only.

§creation_time: Option<DateTime<Utc>>

Creation time of this submission. This may be unset if the student has not accessed this item. Read-only.

§draft_grade: Option<f64>

Optional pending grade. If unset, no grade was set. This value must be non-negative. Decimal (that is, non-integer) values are allowed, but are rounded to two decimal places. This is only visible to and modifiable by course teachers.

§id: Option<String>

Classroom-assigned Identifier for the student submission. This is unique among submissions for the relevant course work. Read-only.

§late: Option<bool>

Whether this submission is late. Read-only.

§multiple_choice_submission: Option<MultipleChoiceSubmission>

Submission content when course_work_type is MULTIPLE_CHOICE_QUESTION.

§short_answer_submission: Option<ShortAnswerSubmission>

Submission content when course_work_type is SHORT_ANSWER_QUESTION.

§state: Option<String>

State of this submission. Read-only.

§submission_history: Option<Vec<SubmissionHistory>>

The history of the submission (includes state and grade histories). Read-only.

§update_time: Option<DateTime<Utc>>

Last update time of this submission. This may be unset if the student has not accessed this item. Read-only.

§user_id: Option<String>

Identifier for the student that owns this submission. Read-only.

Trait Implementations§

source§

impl Clone for StudentSubmission

source§

fn clone(&self) -> StudentSubmission

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for StudentSubmission

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for StudentSubmission

source§

fn default() -> StudentSubmission

Returns the “default value” for a type. Read more
source§

impl<'de> Deserialize<'de> for StudentSubmission

source§

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 StudentSubmission

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl RequestValue for StudentSubmission

source§

impl ResponseResult for StudentSubmission

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,