Trait Provider
pub trait Provider<Host, Row>where
Row: SearchRow,{
// Required methods
fn id(&self) -> &str;
fn resource_kinds(&self) -> &[ResourceKind];
fn query_page(
&self,
host: &Host,
query: &Query<'_>,
cursor: Option<&SearchCursor>,
budget: SearchBudget,
) -> SearchPage<Row>;
fn resolve(&self, host: &Host, id: &str, query: &Query<'_>) -> Option<Row>;
// Provided methods
fn max_score(&self) -> i32 { ... }
fn available_in_active_app_scope(&self) -> bool { ... }
fn revision(&self, _host: &Host, _query: &Query<'_>) -> String { ... }
}Expand description
Typed fanout boundary. The host supplies retained providers and activation payloads.