Struct google_classroom1::api::GradeCategory
source · pub struct GradeCategory {
pub default_grade_denominator: Option<i32>,
pub id: Option<String>,
pub name: Option<String>,
pub weight: Option<i32>,
}
Expand description
Details for a grade category in a course. Coursework may have zero or one grade category, and the category may be used in computing the overall grade. See the help center article for details.
This type is not used in any activity, and only used as part of another schema.
Fields§
§default_grade_denominator: Option<i32>
Default value of denominator. Only applicable when grade calculation type is TOTAL_POINTS.
id: Option<String>
ID of the grade category.
name: Option<String>
Name of the grade category.
weight: Option<i32>
The weight of the category average as part of overall average. A weight of 12.34% is represented as 123400 (100% is 1,000,000). The last two digits should always be zero since we use two decimal precision. Only applicable when grade calculation type is WEIGHTED_CATEGORIES.
Trait Implementations§
source§impl Clone for GradeCategory
impl Clone for GradeCategory
source§fn clone(&self) -> GradeCategory
fn clone(&self) -> GradeCategory
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 GradeCategory
impl Debug for GradeCategory
source§impl Default for GradeCategory
impl Default for GradeCategory
source§fn default() -> GradeCategory
fn default() -> GradeCategory
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for GradeCategory
impl<'de> Deserialize<'de> for GradeCategory
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 GradeCategory
impl Serialize for GradeCategory
impl Part for GradeCategory
Auto Trait Implementations§
impl RefUnwindSafe for GradeCategory
impl Send for GradeCategory
impl Sync for GradeCategory
impl Unpin for GradeCategory
impl UnwindSafe for GradeCategory
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