pub struct Course {
Show 19 fields pub alternate_link: Option<String>, pub calendar_id: Option<String>, pub course_group_email: Option<String>, pub course_material_sets: Option<Vec<CourseMaterialSet>>, pub course_state: Option<String>, pub creation_time: Option<DateTime<Utc>>, pub description: Option<String>, pub description_heading: Option<String>, pub enrollment_code: Option<String>, pub gradebook_settings: Option<GradebookSettings>, pub guardians_enabled: Option<bool>, pub id: Option<String>, pub name: Option<String>, pub owner_id: Option<String>, pub room: Option<String>, pub section: Option<String>, pub teacher_folder: Option<DriveFolder>, pub teacher_group_email: Option<String>, pub update_time: Option<DateTime<Utc>>,
}
Expand description

A Course in Classroom.

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).

Fields§

§alternate_link: Option<String>

Absolute link to this course in the Classroom web UI. Read-only.

§calendar_id: Option<String>

The Calendar ID for a calendar that all course members can see, to which Classroom adds events for course work and announcements in the course. Read-only.

§course_group_email: Option<String>

The email address of a Google group containing all members of the course. This group does not accept email and can only be used for permissions. Read-only.

§course_material_sets: Option<Vec<CourseMaterialSet>>

Sets of materials that appear on the “about” page of this course. Read-only.

§course_state: Option<String>

State of the course. If unspecified, the default state is PROVISIONED.

§creation_time: Option<DateTime<Utc>>

Creation time of the course. Specifying this field in a course update mask results in an error. Read-only.

§description: Option<String>

Optional description. For example, “We’ll be learning about the structure of living creatures from a combination of textbooks, guest lectures, and lab work. Expect to be excited!” If set, this field must be a valid UTF-8 string and no longer than 30,000 characters.

§description_heading: Option<String>

Optional heading for the description. For example, “Welcome to 10th Grade Biology.” If set, this field must be a valid UTF-8 string and no longer than 3600 characters.

§enrollment_code: Option<String>

Enrollment code to use when joining this course. Specifying this field in a course update mask results in an error. Read-only.

§gradebook_settings: Option<GradebookSettings>

The gradebook settings that specify how a student’s overall grade for the course will be calculated and who it will be displayed to. Read-only

§guardians_enabled: Option<bool>

Whether or not guardian notifications are enabled for this course. Read-only.

§id: Option<String>

Identifier for this course assigned by Classroom. When creating a course, you may optionally set this identifier to an alias string in the request to create a corresponding alias. The id is still assigned by Classroom and cannot be updated after the course is created. Specifying this field in a course update mask results in an error.

§name: Option<String>

Name of the course. For example, “10th Grade Biology”. The name is required. It must be between 1 and 750 characters and a valid UTF-8 string.

§owner_id: Option<String>

The identifier of the owner of a course. When specified as a parameter of a create course request, this field is required. The identifier can be one of the following: * the numeric identifier for the user * the email address of the user * the string literal "me", indicating the requesting user This must be set in a create request. Admins can also specify this field in a patch course request to transfer ownership. In other contexts, it is read-only.

§room: Option<String>

Optional room location. For example, “301”. If set, this field must be a valid UTF-8 string and no longer than 650 characters.

§section: Option<String>

Section of the course. For example, “Period 2”. If set, this field must be a valid UTF-8 string and no longer than 2800 characters.

§teacher_folder: Option<DriveFolder>

Information about a Drive Folder that is shared with all teachers of the course. This field will only be set for teachers of the course and domain administrators. Read-only.

§teacher_group_email: Option<String>

The email address of a Google group containing all teachers of the course. This group does not accept email and can only be used for permissions. Read-only.

§update_time: Option<DateTime<Utc>>

Time of the most recent update to this course. Specifying this field in a course update mask results in an error. Read-only.

Trait Implementations§

source§

impl Clone for Course

source§

fn clone(&self) -> Course

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Course

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for Course

source§

fn default() -> Course

Returns the “default value” for a type. Read more
source§

impl<'de> Deserialize<'de> for Course

source§

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 Course

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl RequestValue for Course

source§

impl Resource for Course

source§

impl ResponseResult for Course

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere T: for<'de> Deserialize<'de>,