-
Notifications
You must be signed in to change notification settings - Fork 162
Let struct visibility to be same as module #177
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
Conversation
graphql_client_cli/src/generate.rs
Outdated
let module_visibility = match module_visibility { | ||
Some("pub") => syn::VisPublic { pub_token: <Token![pub]>::default() }.into(), | ||
Some("private") => syn::Visibility::Inherited {}, | ||
_ => syn::VisPublic { pub_token: <Token![pub]>::default() }.into(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Restricted(VisRestricted)
needs complex variables.
So I implement pub and private at first for cli.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, thanks for implementing this!
We just need a rebase and this will be merged. |
@tomhoule I've rebased it! |
Nightly build is failed, because of hyperium/hyper#1688. |
Sorry for the delay :/ I'll merge anyway. |
@tomhoule |
feature #77