surrealdb_expr/expr/convert/
fetch.rs1use crate::sql::fetch::*;
7
8impl From<Fetchs> for crate::expr::Fetchs {
9 fn from(v: Fetchs) -> Self {
10 Self::new(v.0.into_iter().map(Into::into).collect())
11 }
12}
13
14impl From<crate::expr::Fetchs> for Fetchs {
15 fn from(v: crate::expr::Fetchs) -> Self {
16 Self(v.into_iter().map(Into::into).collect())
17 }
18}
19
20impl From<Fetch> for crate::expr::Fetch {
21 fn from(v: Fetch) -> Self {
22 crate::expr::Fetch(v.0.into())
23 }
24}
25
26impl From<crate::expr::Fetch> for Fetch {
27 fn from(v: crate::expr::Fetch) -> Self {
28 Fetch(v.0.into())
29 }
30}