From 7ab757b9359360190dec83ebc908169108fd0cda Mon Sep 17 00:00:00 2001 From: baka Date: Tue, 22 Nov 2022 20:22:29 +0000 Subject: [PATCH] Switched remaining i64s to u64s --- README.md | 3 +++ src/models/assignment.rs | 2 +- src/models/user.rs | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 66f1121..71e0b00 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,9 @@ An easy-to-use client for the Canvas LMS REST API written in Rust. +Licensed MIT. + ## References [Canvas LMS REST API Documentation](https://canvas.instructure.com/doc/api/) + diff --git a/src/models/assignment.rs b/src/models/assignment.rs index ca41b8b..a9c4c19 100644 --- a/src/models/assignment.rs +++ b/src/models/assignment.rs @@ -2,7 +2,7 @@ use super::*; #[derive(Serialize, Deserialize, Clone)] pub struct Assignment { - pub id: i64, + pub id: u64, pub name: String, pub description: Option, pub due_at: Option>, diff --git a/src/models/user.rs b/src/models/user.rs index 075fcdc..30c65df 100644 --- a/src/models/user.rs +++ b/src/models/user.rs @@ -3,7 +3,7 @@ use super::*; #[derive(Serialize, Deserialize, Clone)] /// A [User] is a real person (or test student) pub struct User { - pub id: i64, + pub id: u64, pub name: String, pub short_name: String, pub avatar_url: String, -- 2.45.2