Trait sea_orm::TryGetableFromJson
source · pub trait TryGetableFromJson: Sizedwhere
for<'de> Self: Deserialize<'de>,{
// Provided method
fn try_get_from_json<I: ColIdx>(
res: &QueryResult,
idx: I
) -> Result<Self, TryGetError> { ... }
}
Expand description
An interface to get a JSON from the query result
Provided Methods§
sourcefn try_get_from_json<I: ColIdx>(
res: &QueryResult,
idx: I
) -> Result<Self, TryGetError>
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