Trait rerun::external::re_query::ToArchetype
source · pub trait ToArchetype<A>where
A: Archetype,{
// Required method
fn to_archetype(
&self,
resolver: &PromiseResolver
) -> PromiseResult<Result<A, QueryError>>;
}
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, QueryError>>
fn to_archetype( &self, resolver: &PromiseResolver ) -> PromiseResult<Result<A, QueryError>>
Converts the result into an re_types_core::Archetype
.
Automatically handles all aspects of the query process: deserialization, caching, promise resolution, etc.