Retrieve the primary resource from a decoded Document. This function assumes a singular primary resource and will return an Err if the document contains a collection of primary resources.
Helper functions for working with a full JsonApi Document
Fetch information from the top-level 'jsonapi' object
Retrieve the primary resource from a decoded Document. This function assumes a singular primary resource and will return an Err if the document contains a collection of primary resources.
Retrieve a collection of primary resources from a decoded Document. This function assumes a collection primary resources and will return an Err if the document contains a singular primary resource.
Fetch the top-level meta object from the document.
Fetch the top-level links object from the document.