Struct json_pointer::JsonPointer [] [src]

pub struct JsonPointer<S: AsRef<str>, C: AsRef<[S]>> { /* fields omitted */ }

A JSON Pointer.

Create a new JSON pointer with JsonPointer::new, or parse one from a string with str::parse().

Methods

impl<S: AsRef<str>, C: AsRef<[S]>> JsonPointer<S, C>
[src]

Creates a new JsonPointer from the given reference tokens.

Attempts to get a reference to a value from the given JSON value, returning an error if it can't be found.

Attempts to get a mutable reference to a value from the given JSON value, returning an error if it can't be found.

Attempts to get an owned value from the given JSON value, returning an error if it can't be found.

impl<S: AsRef<str>> JsonPointer<S, Vec<S>>
[src]

Adds a component to the JSON pointer.

Removes and returns the last component from the JSON pointer.

Trait Implementations

impl<S: Clone + AsRef<str>, C: Clone + AsRef<[S]>> Clone for JsonPointer<S, C>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<S: Debug + AsRef<str>, C: Debug + AsRef<[S]>> Debug for JsonPointer<S, C>
[src]

Formats the value using the given formatter.

impl<S: Eq + AsRef<str>, C: Eq + AsRef<[S]>> Eq for JsonPointer<S, C>
[src]

impl<S: PartialEq + AsRef<str>, C: PartialEq + AsRef<[S]>> PartialEq for JsonPointer<S, C>
[src]

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

This method tests for !=.

impl<S: AsRef<str>, C: AsRef<[S]>> Display for JsonPointer<S, C>
[src]

Formats the value using the given formatter. Read more

impl FromStr for JsonPointer<String, Vec<String>>
[src]

The associated error which can be returned from parsing.

Parses a string s to return a value of this type. Read more