pub struct Assignment {Show 20 fields
pub id: u64,
pub course_id: Option<u64>,
pub name: Option<String>,
pub description: Option<String>,
pub due_at: Option<DateTime<Utc>>,
pub unlock_at: Option<DateTime<Utc>>,
pub lock_at: Option<DateTime<Utc>>,
pub points_possible: Option<f64>,
pub grading_type: Option<String>,
pub assignment_group_id: Option<u64>,
pub workflow_state: Option<WorkflowState>,
pub submission_types: Option<Vec<SubmissionType>>,
pub published: Option<bool>,
pub muted: Option<bool>,
pub html_url: Option<String>,
pub has_overrides: Option<bool>,
pub needs_grading_count: Option<u64>,
pub position: Option<u64>,
pub omit_from_final_grade: Option<bool>,
pub locked_for_user: Option<bool>,
}Expand description
A Canvas assignment.
Fields§
§id: u64§course_id: Option<u64>§name: Option<String>§description: Option<String>§due_at: Option<DateTime<Utc>>§unlock_at: Option<DateTime<Utc>>§lock_at: Option<DateTime<Utc>>§points_possible: Option<f64>§grading_type: Option<String>§assignment_group_id: Option<u64>§workflow_state: Option<WorkflowState>§submission_types: Option<Vec<SubmissionType>>§published: Option<bool>§muted: Option<bool>§html_url: Option<String>§has_overrides: Option<bool>§needs_grading_count: Option<u64>§position: Option<u64>§omit_from_final_grade: Option<bool>§locked_for_user: Option<bool>Trait Implementations§
Source§impl Clone for Assignment
impl Clone for Assignment
Source§fn clone(&self) -> Assignment
fn clone(&self) -> Assignment
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 Assignment
impl Debug for Assignment
Source§impl<'de> Deserialize<'de> for Assignment
impl<'de> Deserialize<'de> for Assignment
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
Auto Trait Implementations§
impl Freeze for Assignment
impl RefUnwindSafe for Assignment
impl Send for Assignment
impl Sync for Assignment
impl Unpin for Assignment
impl UnsafeUnpin for Assignment
impl UnwindSafe for Assignment
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