Trait jsonptr::Resolve

source ·
pub trait Resolve {
    type Error;

    // Required method
    fn resolve(&self, ptr: &Pointer) -> Result<&Value, Error>;
}
Expand description

Resolve is implemented by types which can resolve a reference to a serde_json::Value from the path in a JSON Pointer.

Required Associated Types§

source

type Error

Error associated with Resolve

Required Methods§

source

fn resolve(&self, ptr: &Pointer) -> Result<&Value, Error>

Resolve a reference to a serde_json::Value based on the path in a Pointer.

Implementations on Foreign Types§

source§

impl Resolve for Value

§

type Error = Error

source§

fn resolve(&self, ptr: &Pointer) -> Result<&Value, Self::Error>

Implementors§