Struct google_classroom1::api::StudentSubmission
source · 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).
- course work student submissions get courses (response)
- course work student submissions modify attachments courses (response)
- course work student submissions patch courses (request|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
impl Clone for StudentSubmission
source§fn clone(&self) -> StudentSubmission
fn clone(&self) -> StudentSubmission
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more