impl IntoResource for &Thing (#2482)
This commit is contained in:
parent
d52784f953
commit
76478b37cd
1 changed files with 6 additions and 0 deletions
|
@ -144,6 +144,12 @@ impl<R> IntoResource<Option<R>> for Thing {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
impl<R> IntoResource<Option<R>> for &Thing {
|
||||||
|
fn into_resource(self) -> Result<Resource> {
|
||||||
|
Ok(Resource::RecordId(self.clone()))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
impl<R, T, I> IntoResource<Option<R>> for (T, I)
|
impl<R, T, I> IntoResource<Option<R>> for (T, I)
|
||||||
where
|
where
|
||||||
T: Into<String>,
|
T: Into<String>,
|
||||||
|
|
Loading…
Reference in a new issue