Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Publish fields in SlackFile struct #110

Merged
merged 1 commit into from
May 2, 2022

Conversation

siketyan
Copy link
Contributor

@siketyan siketyan commented May 2, 2022

Fields in many structs in models crate, excepting SlackFile is currently public and can be accessed from other crates. In addition, SlackMessageContent struct has a files field of type Option<Vec<SlackFile>>, which is public. Thus, we cannot read files from this field across crates due to the missing visibility specifier.

This pull request proposes to add pub-s to fields in SlackFile struct, like other many-many structs.

@abdolence
Copy link
Owner

Hey, definitely. I've added them recently, probably nobody are using them 🙈
Thanks for the fix 👍🏻

Copy link
Owner

@abdolence abdolence left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@abdolence abdolence merged commit 8fe30bc into abdolence:master May 2, 2022
@siketyan siketyan deleted the publish-slack-file branch May 2, 2022 16:07
bmalicoat pushed a commit to bmalicoat/slack-morphism-rust that referenced this pull request May 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants