From 78b21e9df3729894c857deac8dcb406b57066968 Mon Sep 17 00:00:00 2001 From: bitfl0wer Date: Sun, 3 Sep 2023 19:59:03 +0200 Subject: [PATCH] Derive Default for Instance --- src/instance.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/instance.rs b/src/instance.rs index aa5d4d1..72bf350 100644 --- a/src/instance.rs +++ b/src/instance.rs @@ -15,7 +15,7 @@ use crate::types::types::subconfigs::limits::rates::RateLimits; use crate::types::{GeneralConfiguration, Limit, LimitType, User, UserSettings}; use crate::UrlBundle; -#[derive(Debug, Clone)] +#[derive(Debug, Clone, Default)] /// The [`Instance`]; what you will be using to perform all sorts of actions on the Spacebar server. /// If `limits_information` is `None`, then the instance will not be rate limited. pub struct Instance { @@ -25,7 +25,7 @@ pub struct Instance { pub client: Client, } -#[derive(Debug, Clone, Serialize, Deserialize)] +#[derive(Debug, Clone, Serialize, Deserialize, Default)] pub struct LimitsInformation { pub ratelimits: HashMap, pub configuration: RateLimits,