pub trait JsonPointee: Any {
// Required method
fn resolve(
&self,
pointer: &JsonPointer,
) -> Result<&dyn JsonPointee, JsonPointeeError>;
// Provided method
fn name(&self) -> &'static str { ... }
}Expand description
A value that a JsonPointer points to.
Required Methods§
Sourcefn resolve(
&self,
pointer: &JsonPointer,
) -> Result<&dyn JsonPointee, JsonPointeeError>
fn resolve( &self, pointer: &JsonPointer, ) -> Result<&dyn JsonPointee, JsonPointeeError>
Resolves a JsonPointer against this value.
Provided Methods§
Implementations on Foreign Types§
Source§impl JsonPointee for &'static str
impl JsonPointee for &'static str
fn resolve( &self, pointer: &JsonPointer, ) -> Result<&dyn JsonPointee, JsonPointeeError>
Source§impl JsonPointee for bool
impl JsonPointee for bool
fn resolve( &self, pointer: &JsonPointer, ) -> Result<&dyn JsonPointee, JsonPointeeError>
Source§impl JsonPointee for f32
impl JsonPointee for f32
fn resolve( &self, pointer: &JsonPointer, ) -> Result<&dyn JsonPointee, JsonPointeeError>
Source§impl JsonPointee for f64
impl JsonPointee for f64
fn resolve( &self, pointer: &JsonPointer, ) -> Result<&dyn JsonPointee, JsonPointeeError>
Source§impl JsonPointee for i8
impl JsonPointee for i8
fn resolve( &self, pointer: &JsonPointer, ) -> Result<&dyn JsonPointee, JsonPointeeError>
Source§impl JsonPointee for i16
impl JsonPointee for i16
fn resolve( &self, pointer: &JsonPointer, ) -> Result<&dyn JsonPointee, JsonPointeeError>
Source§impl JsonPointee for i32
impl JsonPointee for i32
fn resolve( &self, pointer: &JsonPointer, ) -> Result<&dyn JsonPointee, JsonPointeeError>
Source§impl JsonPointee for i64
impl JsonPointee for i64
fn resolve( &self, pointer: &JsonPointer, ) -> Result<&dyn JsonPointee, JsonPointeeError>
Source§impl JsonPointee for i128
impl JsonPointee for i128
fn resolve( &self, pointer: &JsonPointer, ) -> Result<&dyn JsonPointee, JsonPointeeError>
Source§impl JsonPointee for isize
impl JsonPointee for isize
fn resolve( &self, pointer: &JsonPointer, ) -> Result<&dyn JsonPointee, JsonPointeeError>
Source§impl JsonPointee for u8
impl JsonPointee for u8
fn resolve( &self, pointer: &JsonPointer, ) -> Result<&dyn JsonPointee, JsonPointeeError>
Source§impl JsonPointee for u16
impl JsonPointee for u16
fn resolve( &self, pointer: &JsonPointer, ) -> Result<&dyn JsonPointee, JsonPointeeError>
Source§impl JsonPointee for u32
impl JsonPointee for u32
fn resolve( &self, pointer: &JsonPointer, ) -> Result<&dyn JsonPointee, JsonPointeeError>
Source§impl JsonPointee for u64
impl JsonPointee for u64
fn resolve( &self, pointer: &JsonPointer, ) -> Result<&dyn JsonPointee, JsonPointeeError>
Source§impl JsonPointee for u128
impl JsonPointee for u128
fn resolve( &self, pointer: &JsonPointer, ) -> Result<&dyn JsonPointee, JsonPointeeError>
Source§impl JsonPointee for usize
impl JsonPointee for usize
fn resolve( &self, pointer: &JsonPointer, ) -> Result<&dyn JsonPointee, JsonPointeeError>
Source§impl JsonPointee for String
impl JsonPointee for String
fn resolve( &self, pointer: &JsonPointer, ) -> Result<&dyn JsonPointee, JsonPointeeError>
Source§impl<T, H> JsonPointee for HashMap<String, T, H>where
T: JsonPointee,
H: BuildHasher + 'static,
impl<T, H> JsonPointee for HashMap<String, T, H>where
T: JsonPointee,
H: BuildHasher + 'static,
fn resolve( &self, pointer: &JsonPointer, ) -> Result<&dyn JsonPointee, JsonPointeeError>
Source§impl<T: JsonPointee> JsonPointee for Option<T>
Transparently resolves a JsonPointer against the contained value
if Some, or returns an error if None.
impl<T: JsonPointee> JsonPointee for Option<T>
Transparently resolves a JsonPointer against the contained value
if Some, or returns an error if None.