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

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.

The latest version of the JSON API specification that is supported by this implementation. Defaults to the latest available version.

Methods

impl JsonApi
[src]

[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]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for JsonApi
[src]

[src]

Formats the value using the given formatter.

impl Default for JsonApi
[src]

[src]

Returns the "default value" for a type. Read more

impl PartialEq for JsonApi
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.