Struct google_classroom1::CourseWork
source · pub struct CourseWork {Show 21 fields
pub update_time: Option<String>,
pub description: Option<String>,
pub course_id: Option<String>,
pub assignment: Option<Assignment>,
pub scheduled_time: Option<String>,
pub associated_with_developer: Option<bool>,
pub assignee_mode: Option<String>,
pub max_points: Option<f64>,
pub due_date: Option<Date>,
pub work_type: Option<String>,
pub submission_modification_mode: Option<String>,
pub alternate_link: Option<String>,
pub creator_user_id: Option<String>,
pub creation_time: Option<String>,
pub id: Option<String>,
pub state: Option<String>,
pub materials: Option<Vec<Material>>,
pub title: Option<String>,
pub individual_students_options: Option<IndividualStudentsOptions>,
pub due_time: Option<TimeOfDay>,
pub multiple_choice_question: Option<MultipleChoiceQuestion>,
}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).
- course work modify assignees courses (response)
- course work create courses (request|response)
- course work patch courses (request|response)
- course work get courses (response)
Fields§
§update_time: Option<String>Timestamp of the most recent change to this course work.
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.
course_id: Option<String>Identifier of the course.
Read-only.
assignment: Option<Assignment>Assignment details.
This is populated only when work_type is ASSIGNMENT.
Read-only.
scheduled_time: Option<String>Optional timestamp when this course work is scheduled to be published.
associated_with_developer: Option<bool>Whether this course work item is associated with the Developer Console project making the request.
See google.classroom.Work.CreateCourseWork for more details.
Read-only.
assignee_mode: Option<String>Assignee mode of the coursework.
If unspecified, the default value is ALL_STUDENTS.
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.
due_date: Option<Date>Optional date, in UTC, that submissions for this this course work are due.
This must be specified if due_time is specified.
work_type: Option<String>Type of this course work.
The type is set when the course work is created and cannot be changed.
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.
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.
creator_user_id: Option<String>Identifier for the user that created the coursework.
Read-only.
creation_time: Option<String>Timestamp when this course work was created.
Read-only.
id: Option<String>Classroom-assigned identifier of this course work, unique per course.
Read-only.
state: Option<String>Status of this course work.
If unspecified, the default state is DRAFT.
materials: Option<Vec<Material>>Additional materials.
CourseWork must have no more than 20 material items.
title: Option<String>Title of this course work. The title must be a valid UTF-8 string containing between 1 and 3000 characters.
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 will be assigned the coursework.
due_time: Option<TimeOfDay>Optional time of day, in UTC, that submissions for this this course work
are due.
This must be specified if due_date is specified.
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.
Trait Implementations§
source§impl Clone for CourseWork
impl Clone for CourseWork
source§fn clone(&self) -> CourseWork
fn clone(&self) -> CourseWork
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for CourseWork
impl Debug for CourseWork
source§impl Default for CourseWork
impl Default for CourseWork
source§fn default() -> CourseWork
fn default() -> CourseWork
source§impl<'de> Deserialize<'de> for CourseWork
impl<'de> Deserialize<'de> for CourseWork
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
source§impl Serialize for CourseWork
impl Serialize for CourseWork
impl RequestValue for CourseWork
impl ResponseResult for CourseWork
Auto Trait Implementations§
impl Freeze for CourseWork
impl RefUnwindSafe for CourseWork
impl Send for CourseWork
impl Sync for CourseWork
impl Unpin for CourseWork
impl UnwindSafe for CourseWork
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)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>
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>
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