pub trait FetchSubquery<F: Field>: Clone {
// Required methods
fn flatten(&self) -> Vec<AssignedValue<F>>;
fn fetch<P: JsonRpcClient>(&self, p: &Provider<P>) -> Result<H256>;
fn any_subquery(&self) -> AnySubquery;
// Provided method
fn call<P: JsonRpcClient>(
&self,
ctx: &mut Context<F>,
caller: &mut SubqueryCaller<P, F>,
) -> HiLo<AssignedValue<F>> { ... }
}Required Methods§
fn flatten(&self) -> Vec<AssignedValue<F>>
fn fetch<P: JsonRpcClient>(&self, p: &Provider<P>) -> Result<H256>
fn any_subquery(&self) -> AnySubquery
Provided Methods§
fn call<P: JsonRpcClient>( &self, ctx: &mut Context<F>, caller: &mut SubqueryCaller<P, F>, ) -> HiLo<AssignedValue<F>>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.