1
0
Fork 0
mirror of https://github.com/kotovalexarian/jsonapis.rs.git synced 2025-04-21 17:52:45 -04:00

Fix "examples/builders.rs"

This commit is contained in:
Alex Kotov 2022-08-02 19:39:05 +04:00
parent 6d48b269c0
commit 3e24709ba4
Signed by: kotovalexarian
GPG key ID: 553C0EBBEB5D5F08

View file

@ -54,6 +54,7 @@ fn main() {
"last": json!("http://example.com/posts.json?page=3"),
"prev": json!(null),
"next": json!("http://example.com/posts.json?page=2"),
"about": json!(null),
}),
"data": json!([
json!({
@ -67,6 +68,7 @@ fn main() {
"last": json!(null),
"prev": json!(null),
"next": json!(null),
"about": json!(null),
}),
"attributes": json!({
"title": json!("Some blog post"),
@ -87,6 +89,7 @@ fn main() {
"last": json!(null),
"prev": json!(null),
"next": json!(null),
"about": json!(null),
}),
"attributes": json!({
"username": json!("alice"),
@ -107,6 +110,7 @@ fn main() {
"last": json!(null),
"prev": json!(null),
"next": json!(null),
"about": json!(null),
}),
"attributes": json!({
"title": json!("Other blog post"),
@ -127,6 +131,7 @@ fn main() {
"last": json!(null),
"prev": json!(null),
"next": json!(null),
"about": json!(null),
}),
"attributes": json!({
"username": json!("bob"),