From f244d5617e3252af2d6848b8a8ad309544e6894f Mon Sep 17 00:00:00 2001 From: Matthew Gapp <61894094+matthewgapp@users.noreply.github.com> Date: Mon, 3 Apr 2023 02:16:57 -0700 Subject: [PATCH] refactor: Refactor SlackFile struct fields as optional (#180) - Make fields `created`, `timestamp`, and `name` optional in `SlackFile` struct --- src/models/files/mod.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/models/files/mod.rs b/src/models/files/mod.rs index 9b76cc1e..92a2e05d 100644 --- a/src/models/files/mod.rs +++ b/src/models/files/mod.rs @@ -22,9 +22,9 @@ pub struct SlackFileExternalType(pub String); #[derive(Debug, PartialEq, Clone, Serialize, Deserialize, Builder)] pub struct SlackFile { pub id: SlackFileId, - pub created: SlackDateTime, - pub timestamp: SlackDateTime, - pub name: String, + pub created: Option, + pub timestamp: Option, + pub name: Option, pub title: Option, pub mimetype: Option, pub filetype: Option,