From 269d246c47a598328a599e940b79e01ab3e20fbd Mon Sep 17 00:00:00 2001 From: Naoki Ikeguchi Date: Mon, 2 May 2022 18:36:03 +0900 Subject: [PATCH] feat(models): Publish SlackFile::* --- src/models/src/files/mod.rs | 46 ++++++++++++++++++------------------- 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/src/models/src/files/mod.rs b/src/models/src/files/mod.rs index 1dece89d..d28e0f4d 100644 --- a/src/models/src/files/mod.rs +++ b/src/models/src/files/mod.rs @@ -21,33 +21,33 @@ pub struct SlackFileExternalType(pub String); #[skip_serializing_none] #[derive(Debug, PartialEq, Clone, Serialize, Deserialize, Builder)] pub struct SlackFile { - id: SlackFileId, - created: SlackDateTime, - timestamp: SlackDateTime, - name: String, - title: Option, - mimetype: Option, - filetype: Option, - pretty_type: Option, - external_type: Option, - user: Option, - username: Option, - url_private: Option, - url_private_download: Option, - permalink: Option, - permalink_public: Option, + pub id: SlackFileId, + pub created: SlackDateTime, + pub timestamp: SlackDateTime, + pub name: String, + pub title: Option, + pub mimetype: Option, + pub filetype: Option, + pub pretty_type: Option, + pub external_type: Option, + pub user: Option, + pub username: Option, + pub url_private: Option, + pub url_private_download: Option, + pub permalink: Option, + pub permalink_public: Option, #[serde(flatten)] - flags: SlackFileFlags, + pub flags: SlackFileFlags, } #[skip_serializing_none] #[derive(Debug, PartialEq, Clone, Serialize, Deserialize, Builder)] pub struct SlackFileFlags { - editable: Option, - is_external: Option, - is_public: Option, - public_url_shared: Option, - display_as_bot: Option, - is_starred: Option, - has_rich_preview: Option, + pub editable: Option, + pub is_external: Option, + pub is_public: Option, + pub public_url_shared: Option, + pub display_as_bot: Option, + pub is_starred: Option, + pub has_rich_preview: Option, }