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

Allow visibility of builders to differ from the underlying constructor #70

Closed
BrynCooke opened this issue Jul 31, 2022 · 1 comment · Fixed by #71
Closed

Allow visibility of builders to differ from the underlying constructor #70

BrynCooke opened this issue Jul 31, 2022 · 1 comment · Fixed by #71

Comments

@BrynCooke
Copy link
Owner

So that an API can be purely builder based.
Allow some sort of override for the generated builder module.

@BrynCooke BrynCooke linked a pull request Jul 31, 2022 that will close this issue
@BrynCooke
Copy link
Owner Author

BrynCooke commented Jul 31, 2022

Use:
#[builder(visibility = "pub")]

Valid values are:

  • pub
  • pub (crate)

To make your API builder only based make your constructor private and add a public builder.

SimonSapin added a commit to apollographql/router that referenced this issue Aug 9, 2022
SimonSapin added a commit to apollographql/router that referenced this issue Aug 12, 2022
SimonSapin added a commit to apollographql/router that referenced this issue Aug 12, 2022
SimonSapin added a commit to apollographql/router that referenced this issue Aug 12, 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 a pull request may close this issue.

1 participant