Struct google_classroom1::api::StudentSubmission[][src]

pub struct StudentSubmission {
    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<String>,
    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<String>,
    pub user_id: Option<String>,
}

Student submission for course work. StudentSubmission items are generated when a CourseWork item is created. StudentSubmissions 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<String>

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<String>

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

impl Clone for StudentSubmission[src]

impl Debug for StudentSubmission[src]

impl Default for StudentSubmission[src]

impl<'de> Deserialize<'de> for StudentSubmission[src]

impl RequestValue for StudentSubmission[src]

impl ResponseResult for StudentSubmission[src]

impl Serialize for StudentSubmission[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.