pub struct CourseWork {
Show 23 fields pub alternate_link: Option<String>, pub assignee_mode: Option<String>, pub assignment: Option<Assignment>, pub associated_with_developer: Option<bool>, pub course_id: Option<String>, pub creation_time: Option<DateTime<Utc>>, pub creator_user_id: Option<String>, pub description: Option<String>, pub due_date: Option<Date>, pub due_time: Option<TimeOfDay>, pub grade_category: Option<GradeCategory>, pub id: Option<String>, pub individual_students_options: Option<IndividualStudentsOptions>, pub materials: Option<Vec<Material>>, pub max_points: Option<f64>, pub multiple_choice_question: Option<MultipleChoiceQuestion>, pub scheduled_time: Option<DateTime<Utc>>, pub state: Option<String>, pub submission_modification_mode: Option<String>, pub title: Option<String>, pub topic_id: Option<String>, pub update_time: Option<DateTime<Utc>>, pub work_type: Option<String>,
}
Expand description

Course work created by a teacher for students of the course.

§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 this course work in the Classroom web UI. This is only populated if state is PUBLISHED. Read-only.

§assignee_mode: Option<String>

Assignee mode of the coursework. If unspecified, the default value is ALL_STUDENTS.

§assignment: Option<Assignment>

Assignment details. This is populated only when work_type is ASSIGNMENT. Read-only.

§associated_with_developer: Option<bool>

Whether this course work item 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.

§creation_time: Option<DateTime<Utc>>

Timestamp when this course work was created. Read-only.

§creator_user_id: Option<String>

Identifier for the user that created the coursework. Read-only.

§description: Option<String>

Optional description of this course work. If set, the description must be a valid UTF-8 string containing no more than 30,000 characters.

§due_date: Option<Date>

Optional date, in UTC, that submissions for this course work are due. This must be specified if due_time is specified.

§due_time: Option<TimeOfDay>

Optional time of day, in UTC, that submissions for this course work are due. This must be specified if due_date is specified.

§grade_category: Option<GradeCategory>

The category that this coursework’s grade contributes to. Present only when a category has been chosen for the coursework. May be used in calculating the overall grade. Read-only.

§id: Option<String>

Classroom-assigned identifier of this course work, unique per course. Read-only.

§individual_students_options: Option<IndividualStudentsOptions>

Identifiers of students with access to the coursework. This field is set only if assigneeMode is INDIVIDUAL_STUDENTS. If the assigneeMode is INDIVIDUAL_STUDENTS, then only students specified in this field are assigned the coursework.

§materials: Option<Vec<Material>>

Additional materials. CourseWork must have no more than 20 material items.

§max_points: Option<f64>

Maximum grade for this course work. If zero or unspecified, this assignment is considered ungraded. This must be a non-negative integer value.

§multiple_choice_question: Option<MultipleChoiceQuestion>

Multiple choice question details. For read operations, this field is populated only when work_type is MULTIPLE_CHOICE_QUESTION. For write operations, this field must be specified when creating course work with a work_type of MULTIPLE_CHOICE_QUESTION, and it must not be set otherwise.

§scheduled_time: Option<DateTime<Utc>>

Optional timestamp when this course work is scheduled to be published.

§state: Option<String>

Status of this course work. If unspecified, the default state is DRAFT.

§submission_modification_mode: Option<String>

Setting to determine when students are allowed to modify submissions. If unspecified, the default value is MODIFIABLE_UNTIL_TURNED_IN.

§title: Option<String>

Title of this course work. The title must be a valid UTF-8 string containing between 1 and 3000 characters.

§topic_id: Option<String>

Identifier for the topic that this coursework is associated with. Must match an existing topic in the course.

§update_time: Option<DateTime<Utc>>

Timestamp of the most recent change to this course work. Read-only.

§work_type: Option<String>

Type of this course work. The type is set when the course work is created and cannot be changed.

Trait Implementations§

source§

impl Clone for CourseWork

source§

fn clone(&self) -> CourseWork

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 CourseWork

source§

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

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

impl Default for CourseWork

source§

fn default() -> CourseWork

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

impl<'de> Deserialize<'de> for CourseWork

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 CourseWork

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 CourseWork

source§

impl ResponseResult for CourseWork

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