From 9855465fe4649508f2a8e9bdfbcf922290e0550b Mon Sep 17 00:00:00 2001 From: bitfl0wer Date: Sat, 6 May 2023 22:23:48 +0200 Subject: [PATCH] change visibilities --- src/api/types.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/api/types.rs b/src/api/types.rs index 8be72da..5dafe1e 100644 --- a/src/api/types.rs +++ b/src/api/types.rs @@ -14,8 +14,8 @@ pub trait WebSocketEvent {} #[derive(Debug, Serialize, Deserialize)] pub struct LoginResult { - token: String, - settings: UserSettings, + pub token: String, + pub settings: UserSettings, } #[derive(Debug, Serialize, Deserialize)] @@ -160,7 +160,7 @@ pub struct User<'a> { token: String, pub limits: Limits, pub settings: UserSettings, - pub object: UserObject, + pub object: Option, } impl<'a> User<'a> { @@ -190,7 +190,7 @@ impl<'a> User<'a> { token: String, limits: Limits, settings: UserSettings, - object: UserObject, + object: Option, ) -> User<'a> { User { logged_in,