mirror of
https://github.com/ramsayleung/rspotify.git
synced 2026-04-26 07:55:55 +03:00
[PR #329] [MERGED] Replace build_json! with a JSON builder API #403
Labels
No labels
Stale
bug
discussion
enhancement
good first issue
good first issue
help wanted
pull-request
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/rspotify#403
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/ramsayleung/rspotify/pull/329
Author: @SabrinaJewson
Created: 6/15/2022
Status: ✅ Merged
Merged: 7/29/2022
Merged by: @marioortizmanero
Base:
master← Head:json-builder📝 Commits (7)
3b017bfReplacebuild_json!with aJsonBuilderb6a3db0Replacejson_builder()withJsonBuilder::new()4e3eb63RenameJsonBuilder::[optional_]fieldtorequiredandoptionalada3b84Merge branch 'master' into json-builder7354a44Formatfe07cc4Usewith_capacityinJsonBuilderd70a737Merge branch 'master' into json-builder📊 Changes
3 files changed (+144 additions, -144 deletions)
View changed files
📝
rspotify-macros/src/lib.rs(+1 -79)📝
src/clients/oauth.rs(+68 -65)📝
src/util/mod.rs(+75 -0)📄 Description
Description
Instead of:
we now use:
I would’ve used an array-based API like in #328 but that doesn’t really work well here because the field value types can be any type rather than just strings.
Dependencies
None.
How has this been tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce.
Please also list any relevant details for your test configuration
cargo test --features env-file🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.