pub struct GradingPeriod {
pub end_date: Option<Date>,
pub id: Option<String>,
pub start_date: Option<Date>,
pub title: Option<String>,
}Expand description
An individual grading period. Grading periods must not have overlapping date ranges and must be listed in chronological order. For example, if the end_date of a grading period is 2024-01-25, then the start_date of the next grading period must be 2024-01-26 or later. Each grading period must have a unique title within a course.
This type is not used in any activity, and only used as part of another schema.
Fields§
§end_date: Option<Date>Required. End date, in UTC, of the grading period. Inclusive.
id: Option<String>Output only. System generated grading period ID. Read-only.
start_date: Option<Date>Required. Start date, in UTC, of the grading period. Inclusive.
title: Option<String>Required. Title of the grading period. For example, “Semester 1”.
Trait Implementations§
Source§impl Clone for GradingPeriod
impl Clone for GradingPeriod
Source§fn clone(&self) -> GradingPeriod
fn clone(&self) -> GradingPeriod
Returns a duplicate 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 GradingPeriod
impl Debug for GradingPeriod
Source§impl Default for GradingPeriod
impl Default for GradingPeriod
Source§fn default() -> GradingPeriod
fn default() -> GradingPeriod
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GradingPeriod
impl<'de> Deserialize<'de> for GradingPeriod
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 GradingPeriod
impl Serialize for GradingPeriod
impl Part for GradingPeriod
Auto Trait Implementations§
impl Freeze for GradingPeriod
impl RefUnwindSafe for GradingPeriod
impl Send for GradingPeriod
impl Sync for GradingPeriod
impl Unpin for GradingPeriod
impl UnwindSafe for GradingPeriod
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