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
, postId
, 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
, postId
, attachmentId
, and submissionId
query parameters set. This is the same submissionId
returned by google.classroom.AddOns.GetAddOnContext 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
, postId
, 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 moreSource§impl Debug for AddOnAttachment
impl Debug for AddOnAttachment
Source§impl Default for AddOnAttachment
impl Default for AddOnAttachment
Source§fn default() -> AddOnAttachment
fn default() -> AddOnAttachment
Source§impl<'de> Deserialize<'de> for AddOnAttachment
impl<'de> Deserialize<'de> for AddOnAttachment
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 AddOnAttachment
impl Serialize for AddOnAttachment
impl RequestValue for AddOnAttachment
impl ResponseResult for AddOnAttachment
Auto Trait Implementations§
impl Freeze for AddOnAttachment
impl RefUnwindSafe for AddOnAttachment
impl Send for AddOnAttachment
impl Sync for AddOnAttachment
impl Unpin for AddOnAttachment
impl UnwindSafe for AddOnAttachment
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§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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