pub struct AddOnContext {
pub course_id: Option<String>,
pub item_id: Option<String>,
pub post_id: Option<String>,
pub student_context: Option<StudentContext>,
pub supports_student_work: Option<bool>,
pub teacher_context: Option<TeacherContext>,
}Expand description
Attachment-relevant metadata for Classroom add-ons in the context of a specific post.
§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).
- announcements get add on context courses (response)
- course work get add on context courses (response)
- course work materials get add on context courses (response)
- posts get add on context courses (response)
Fields§
§course_id: Option<String>Immutable. Identifier of the course.
item_id: Option<String>Immutable. Identifier of the Announcement, CourseWork, or CourseWorkMaterial under which the attachment is attached.
post_id: Option<String>Immutable. Deprecated, use item_id instead.
student_context: Option<StudentContext>Add-on context corresponding to the requesting user’s role as a student. Its presence implies that the requesting user is a student in the course.
supports_student_work: Option<bool>Optional. Whether the post allows the teacher to see student work and passback grades.
teacher_context: Option<TeacherContext>Add-on context corresponding to the requesting user’s role as a teacher. Its presence implies that the requesting user is a teacher in the course.
Trait Implementations§
Source§impl Clone for AddOnContext
impl Clone for AddOnContext
Source§fn clone(&self) -> AddOnContext
fn clone(&self) -> AddOnContext
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more