Skip to main content

Json

Trait Json 

Source
pub trait Json:
    Sized
    + Send
    + Sync
    + 'static {
    type Node<'a>: JsonNode<'a, Self>;
    type PreparedKey: Send + Sync;

    // Required method
    fn prepare_key(key: &str) -> Self::PreparedKey;
}
Expand description

Ties together the concrete node types for one JSON representation.

Required Associated Types§

Source

type Node<'a>: JsonNode<'a, Self>

Source

type PreparedKey: Send + Sync

A property-name key prepared once at schema compile time for repeated object lookups.

Required Methods§

Source

fn prepare_key(key: &str) -> Self::PreparedKey

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§