Trait IntoJson

Source
pub trait IntoJson: Sized {
    // Required method
    fn into_json(self) -> Value;
}

Required Methods§

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 IntoJson for bool

Source§

impl IntoJson for String

Source§

impl IntoJson for IriRefBuf

Source§

impl<'n, T: IntoJsonWithContext<N>, N> IntoJson for Contextual<T, &'n N>

Source§

impl<'n, T: IntoJsonWithContext<N>, N> IntoJson for Contextual<T, &'n mut N>

Source§

impl<T: IntoJson> IntoJson for Box<T>

Implementors§