Skip to content

Commit

Permalink
refactor: Refactor SlackFile struct fields as optional (#180)
Browse files Browse the repository at this point in the history
- Make fields `created`, `timestamp`, and `name` optional in `SlackFile` struct
  • Loading branch information
matthewgapp authored Apr 3, 2023
1 parent 9554c00 commit f244d56
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/models/files/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<SlackDateTime>,
pub timestamp: Option<SlackDateTime>,
pub name: Option<String>,
pub title: Option<String>,
pub mimetype: Option<SlackMimeType>,
pub filetype: Option<SlackFileType>,
Expand Down

0 comments on commit f244d56

Please sign in to comment.