{"action":"closed","issue":{"url":"https://api.github.com/repos/michiel/jsonapi-rust/issues/50","repository_url":"https://api.github.com/repos/michiel/jsonapi-rust","labels_url":"https://api.github.com/repos/michiel/jsonapi-rust/issues/50/labels{/name}","comments_url":"https://api.github.com/repos/michiel/jsonapi-rust/issues/50/comments","events_url":"https://api.github.com/repos/michiel/jsonapi-rust/issues/50/events","html_url":"https://github.com/michiel/jsonapi-rust/issues/50","id":390777651,"node_id":"MDU6SXNzdWUzOTA3Nzc2NTE=","number":50,"title":"How to add relationships to a model","user":{"login":"mmstick","id":4143535,"node_id":"MDQ6VXNlcjQxNDM1MzU=","avatar_url":"https://avatars1.githubusercontent.com/u/4143535?v=4","gravatar_id":"","url":"https://api.github.com/users/mmstick","html_url":"https://github.com/mmstick","followers_url":"https://api.github.com/users/mmstick/followers","following_url":"https://api.github.com/users/mmstick/following{/other_user}","gists_url":"https://api.github.com/users/mmstick/gists{/gist_id}","starred_url":"https://api.github.com/users/mmstick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mmstick/subscriptions","organizations_url":"https://api.github.com/users/mmstick/orgs","repos_url":"https://api.github.com/users/mmstick/repos","events_url":"https://api.github.com/users/mmstick/events{/privacy}","received_events_url":"https://api.github.com/users/mmstick/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-12-13T17:15:37Z","updated_at":"2018-12-13T18:12:27Z","closed_at":"2018-12-13T18:12:26Z","author_association":"NONE","body":"I'm in need of creating new resources on an endpoint from data structures in Rust, and I'm having some difficulty figuring out how to add related resources to the model when I send it to the server. How would I go from a data structure, to serializing it with required relationships (ie: foreign keys)?"}}
{"actor":{"display_login":"mmstick"}}