Trait leetcode_tui_rs::migrations::sea_orm::TryGetableFromJson
source · pub trait TryGetableFromJson: Sized + for<'de> Deserialize<'de> {
// Provided method
fn try_get_from_json<I>(
res: &QueryResult,
idx: I
) -> Result<Self, TryGetError>
where I: ColIdx { ... }
}
Expand description
An interface to get a JSON from the query result
Provided Methods§
sourcefn try_get_from_json<I>(res: &QueryResult, idx: I) -> Result<Self, TryGetError>where
I: ColIdx,
fn try_get_from_json<I>(res: &QueryResult, idx: I) -> Result<Self, TryGetError>where I: ColIdx,
Get a JSON from the query result with prefixed column name