Struct google_classroom1::api::Attachment
source · pub struct Attachment {
pub drive_file: Option<DriveFile>,
pub form: Option<Form>,
pub link: Option<Link>,
pub you_tube_video: Option<YouTubeVideo>,
}
Expand description
Attachment added to student assignment work. When creating attachments, setting the form
field is not supported.
This type is not used in any activity, and only used as part of another schema.
Fields§
§drive_file: Option<DriveFile>
Google Drive file attachment.
form: Option<Form>
Google Forms attachment.
link: Option<Link>
Link attachment.
you_tube_video: Option<YouTubeVideo>
Youtube video attachment.
Trait Implementations§
source§impl Clone for Attachment
impl Clone for Attachment
source§fn clone(&self) -> Attachment
fn clone(&self) -> Attachment
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for Attachment
impl Debug for Attachment
source§impl Default for Attachment
impl Default for Attachment
source§fn default() -> Attachment
fn default() -> Attachment
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for Attachment
impl<'de> Deserialize<'de> for Attachment
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>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Serialize for Attachment
impl Serialize for Attachment
impl Part for Attachment
Auto Trait Implementations§
impl RefUnwindSafe for Attachment
impl Send for Attachment
impl Sync for Attachment
impl Unpin for Attachment
impl UnwindSafe for Attachment
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
Mutably borrows from an owned value. Read more