Struct google_classroom1::api::Material
source · pub struct Material {
pub drive_file: Option<SharedDriveFile>,
pub form: Option<Form>,
pub link: Option<Link>,
pub youtube_video: Option<YouTubeVideo>,
}
Expand description
Material attached to course 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<SharedDriveFile>
Google Drive file material.
form: Option<Form>
Google Forms material.
link: Option<Link>
Link material. On creation, this is upgraded to a more appropriate type if possible, and this is reflected in the response.
youtube_video: Option<YouTubeVideo>
YouTube video material.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Material
impl<'de> Deserialize<'de> for Material
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
impl Part for Material
Auto Trait Implementations§
impl RefUnwindSafe for Material
impl Send for Material
impl Sync for Material
impl Unpin for Material
impl UnwindSafe for Material
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