However this won't compile, because the generated Document has taken a
lifetime from schema which doesn't outlive the function.
I was looking around the library and saw that the query::Document has an
into_static function when using Strings which resolves this. This
duplicates that functionality for schema::Document.
I'm running into issues using
schema::Document
with strings. I have a function that looks roughly like this:However this won't compile, because the generated
Document
has taken a lifetime fromschema
which doesn't outlive the function.I was looking around the library and saw that the
query::Document
has aninto_static
function when usingStrings
which resolves this. This duplicates that functionality forschema::Document
.