Trait re_query::ToArchetype
source · pub trait ToArchetype<A: Archetype> {
// Required method
fn to_archetype(
&self,
resolver: &PromiseResolver
) -> PromiseResult<Result<A>>;
}
Expand description
Helper extension trait to convert query results into re_types_core::Archetype
s.
Required Methods§
sourcefn to_archetype(&self, resolver: &PromiseResolver) -> PromiseResult<Result<A>>
fn to_archetype(&self, resolver: &PromiseResolver) -> PromiseResult<Result<A>>
Converts the result into an re_types_core::Archetype
.
Automatically handles all aspects of the query process: deserialization, caching, promise resolution, etc.