From d9857180e9a494bb38b7cad0c8b7209d11c40c8a Mon Sep 17 00:00:00 2001 From: bitfl0wer Date: Mon, 24 Apr 2023 19:51:35 +0200 Subject: [PATCH] Give each user their own rate limits --- src/api/schemas.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/api/schemas.rs b/src/api/schemas.rs index 65b4fe1..d28e60e 100644 --- a/src/api/schemas.rs +++ b/src/api/schemas.rs @@ -3,7 +3,7 @@ pub mod schemas { use serde::{Deserialize, Serialize}; use std::{collections::HashMap, fmt}; - use crate::{errors::FieldFormatError, URLBundle}; + use crate::{api::limits::Limits, errors::FieldFormatError, URLBundle}; /** A struct that represents a well-formed email address. @@ -405,6 +405,7 @@ pub mod schemas { logged_in: bool, belongs_to: URLBundle, token: String, + rate_limits: Limits, pub settings: UserSettings, pub object: UserObject, }