pub trait TryGetableFromJson: Sized
where for<'de> Self: Deserialize<'de>,
{ // Provided methods fn try_get_from_json<I: ColIdx>( res: &QueryResult, idx: I ) -> Result<Self, TryGetError> { ... } fn from_json_vec(value: Value) -> Result<Vec<Self>, TryGetError> { ... } }
Expand description

An interface to get a JSON from the query result

Provided Methods§

source

fn try_get_from_json<I: ColIdx>( res: &QueryResult, idx: I ) -> Result<Self, TryGetError>

Get a JSON from the query result with prefixed column name

source

fn from_json_vec(value: Value) -> Result<Vec<Self>, TryGetError>

Get a Vec from an Array of Json

Object Safety§

This trait is not object safe.

Implementors§