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

chore: make accessors public and reexport indexmap #1329

Merged
merged 2 commits into from
Aug 15, 2023

Conversation

broody
Copy link
Contributor

@broody broody commented Jul 26, 2023

Does it make sense to make the value accessors public? Currently, I'm duplicating this file in my own project to use them, but these are nice helpers I think the library could expose. Also, re-exporting the indexmap.

@broody
Copy link
Contributor Author

broody commented Aug 3, 2023

@sunli829 lemme know if there's anything else I should add

src/dynamic/value_accessor.rs Show resolved Hide resolved
@@ -106,7 +106,7 @@ impl<'a> ValueAccessor<'a> {
}

/// A object accessor
pub struct ObjectAccessor<'a>(pub(crate) Cow<'a, IndexMap<Name, Value>>);
Copy link
Collaborator

Choose a reason for hiding this comment

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

keep pub(crate)

@sunli829 sunli829 merged commit 959659c into async-graphql:master Aug 15, 2023
6 of 8 checks passed
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.

None yet

2 participants