jsonptr

Trait Assign

Source
pub trait Assign {
    type Error;

    // Required method
    fn assign<V>(
        &mut self,
        ptr: &Pointer,
        value: V,
    ) -> Result<Assignment<'_>, Self::Error>
       where V: Into<Value>;
}
Expand description

Assign is implemented by types which can internally assign a serde_json::Value by a JSON Pointer.

Required Associated Types§

Source

type Error

Error associated with Assign

Required Methods§

Source

fn assign<V>( &mut self, ptr: &Pointer, value: V, ) -> Result<Assignment<'_>, Self::Error>
where V: Into<Value>,

Assign a value of based on the path provided by a JSON Pointer.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl Assign for Value

Source§

type Error = Error

Source§

fn assign<V>( &mut self, ptr: &Pointer, value: V, ) -> Result<Assignment<'_>, Error>
where V: Into<Value>,

Implementors§