Skip to main content

JsonPointee

Trait JsonPointee 

Source
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§

Source

fn resolve( &self, pointer: &JsonPointer, ) -> Result<&dyn JsonPointee, JsonPointeeError>

Resolves a JsonPointer against this value.

Provided Methods§

Source

fn name(&self) -> &'static str

Returns the concrete type name of this value.

Implementations on Foreign Types§

Source§

impl JsonPointee for &'static str

Source§

impl JsonPointee for bool

Source§

impl JsonPointee for f32

Source§

impl JsonPointee for f64

Source§

impl JsonPointee for i8

Source§

impl JsonPointee for i16

Source§

impl JsonPointee for i32

Source§

impl JsonPointee for i64

Source§

impl JsonPointee for i128

Source§

impl JsonPointee for isize

Source§

impl JsonPointee for u8

Source§

impl JsonPointee for u16

Source§

impl JsonPointee for u32

Source§

impl JsonPointee for u64

Source§

impl JsonPointee for u128

Source§

impl JsonPointee for usize

Source§

impl JsonPointee for String

Source§

impl<T, H> JsonPointee for HashMap<String, T, H>
where T: JsonPointee, H: BuildHasher + 'static,

Source§

impl<T: JsonPointee> JsonPointee for Option<T>

Transparently resolves a JsonPointer against the contained value if Some, or returns an error if None.

Source§

impl<T: JsonPointee> JsonPointee for Box<T>

Source§

impl<T: JsonPointee> JsonPointee for BTreeMap<String, T>

Source§

impl<T: JsonPointee> JsonPointee for Rc<T>

Source§

impl<T: JsonPointee> JsonPointee for Arc<T>

Source§

impl<T: JsonPointee> JsonPointee for Vec<T>

Implementors§