pub struct AddOnAttachment {
pub copy_history: Option<Vec<CopyHistory>>,
pub course_id: Option<String>,
pub due_date: Option<Date>,
pub due_time: Option<TimeOfDay>,
pub id: Option<String>,
pub item_id: Option<String>,
pub max_points: Option<f64>,
pub post_id: Option<String>,
pub student_view_uri: Option<EmbedUri>,
pub student_work_review_uri: Option<EmbedUri>,
pub teacher_view_uri: Option<EmbedUri>,
pub title: Option<String>,
}Expand description
An add-on attachment on a 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 add on attachments create courses (request|response)
- announcements add on attachments get courses (response)
- announcements add on attachments patch courses (request|response)
- course work add on attachments create courses (request|response)
- course work add on attachments get courses (response)
- course work add on attachments patch courses (request|response)
- course work materials add on attachments create courses (request|response)
- course work materials add on attachments get courses (response)
- course work materials add on attachments patch courses (request|response)
- posts add on attachments create courses (request|response)
- posts add on attachments get courses (response)
- posts add on attachments patch courses (request|response)
Fields§
§copy_history: Option<Vec<CopyHistory>>Output only. Identifiers of attachments that were previous copies of this attachment. If the attachment was previously copied by virtue of its parent post being copied, this enumerates the identifiers of attachments that were its previous copies in ascending chronological order of copy.
course_id: Option<String>Immutable. Identifier of the course.
due_date: Option<Date>Date, in UTC, that work on this attachment is due. This must be specified if due_time is specified.
due_time: Option<TimeOfDay>Time of day, in UTC, that work on this attachment is due. This must be specified if due_date is specified.
id: Option<String>Immutable. Classroom-assigned identifier for this attachment, unique per post.
item_id: Option<String>Immutable. Identifier of the Announcement, CourseWork, or CourseWorkMaterial under which the attachment is attached. Unique per course.
max_points: Option<f64>Maximum grade for this attachment. Can only be set if studentWorkReviewUri is set. Set to a non-zero value to indicate that the attachment supports grade passback. If set, this must be a non-negative integer value. When set to zero, the attachment will not support grade passback.
post_id: Option<String>Immutable. Deprecated, use item_id instead.
student_view_uri: Option<EmbedUri>Required. URI to show the student view of the attachment. The URI will be opened in an iframe with the courseId, itemId, itemType, and attachmentId query parameters set.
student_work_review_uri: Option<EmbedUri>URI for the teacher to see student work on the attachment, if applicable. The URI will be opened in an iframe with the courseId, itemId, itemType, attachmentId, and submissionId query parameters set. This is the same submissionId returned in the AddOnContext.studentContext field when a student views the attachment. If the URI is omitted or removed, max_points will also be discarded.
teacher_view_uri: Option<EmbedUri>Required. URI to show the teacher view of the attachment. The URI will be opened in an iframe with the courseId, itemId, itemType, and attachmentId query parameters set.
title: Option<String>Required. Title of this attachment. The title must be between 1 and 1000 characters.
Trait Implementations§
Source§impl Clone for AddOnAttachment
impl Clone for AddOnAttachment
Source§fn clone(&self) -> AddOnAttachment
fn clone(&self) -> AddOnAttachment
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more