Struct json_api::doc::JsonApi
[−]
[src]
pub struct JsonApi { pub meta: Map, pub version: Version, // some fields omitted }
Information about this implementation of the specification.
For more information, check out the JSON API object section of the JSON API specification.
Fields
meta: Map
Non-standard meta information. If this value of this field is empty, it will not be included if the object is serialized. For more information, check out the meta information section of the JSON API specification.
version: Version
The latest version of the JSON API specification that is supported by this implementation. Defaults to the latest available version.
Methods
impl JsonApi
[src]
fn new(version: Version) -> Self
[src]
Returns a new JsonApi
with the specified version
.
Example
use json_api::doc::{JsonApi, Version}; assert_eq!(JsonApi::default(), JsonApi::new(Version::V1));
Trait Implementations
impl Clone for JsonApi
[src]
fn clone(&self) -> JsonApi
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more