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

Support statically defined Querys #76

Merged
merged 2 commits into from
Aug 22, 2022
Merged

Support statically defined Querys #76

merged 2 commits into from
Aug 22, 2022

Conversation

sd2k
Copy link
Collaborator

@sd2k sd2k commented Aug 21, 2022

  • Add 'Query' as associated type to 'DataService'
  • Allow any T: Serialize to be used as JSONified 'initial_data' in streams

The backend SDK will now try to deserialize the query JSON into this
'Query' associated type, rather than always using 'serde_json::Value'
and requiring the user to handle conversion to a (probably static) type
anyway.

The old behaviour can be obtained by setting the Query associated type
to 'serde_json::Value'.
@sd2k sd2k changed the title static queries Support statically defined Querys Aug 21, 2022
@sd2k sd2k merged commit 3092940 into main Aug 22, 2022
@sd2k sd2k deleted the static-queries branch August 22, 2022 09:16
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

1 participant