pub trait Loadable: Sized {
// Required methods
fn graphql_type() -> &'static str;
fn from_query(
proc: Option<Arc<DaggerSessionProc>>,
selection: Selection,
graphql_client: DynGraphQLClient,
) -> Self;
}Expand description
Types that can be loaded from an ID via node(id:) + inline
fragments. Every generated object and interface client type
with an id field implements this.
Required Methods§
Sourcefn graphql_type() -> &'static str
fn graphql_type() -> &'static str
The GraphQL type name (e.g. "Container").
Sourcefn from_query(
proc: Option<Arc<DaggerSessionProc>>,
selection: Selection,
graphql_client: DynGraphQLClient,
) -> Self
fn from_query( proc: Option<Arc<DaggerSessionProc>>, selection: Selection, graphql_client: DynGraphQLClient, ) -> Self
Construct this type from a query selection.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".