Function json_api::to_doc
[−]
[src]
pub fn to_doc<T, U>(
value: T,
query: Option<&Query>
) -> Result<Document<U>, Error> where
T: Render<U>,
U: PrimaryData,
Render type T
as a Document<U>
.