pub struct ListingQuery {
pub capability_scope_prefix: Option<String>,
pub namespace: Option<String>,
pub actor_kind: Option<GenericListingActorKind>,
pub max_price_per_call: Option<MonetaryAmount>,
pub provider_operator_id: Option<String>,
pub require_fresh: bool,
pub limit: Option<usize>,
}Expand description
Marketplace query for search.
All fields are optional filters; an empty ListingQuery returns every
active listing across every report within Self::limit_or_default.
Fields§
§capability_scope_prefix: Option<String>Capability scope prefix to match against the hint’s
capability_scope. Matching is a literal prefix match after trim.
namespace: Option<String>Namespace filter. Same normalization as GenericListingQuery.
actor_kind: Option<GenericListingActorKind>Actor-kind filter. Defaults to ToolServer when unset.
max_price_per_call: Option<MonetaryAmount>Only return listings whose price per call is less than or equal to this ceiling. Currency must match; listings with differing currency are filtered out.
provider_operator_id: Option<String>Require a specific provider operator id (matches hint and publisher).
require_fresh: boolRequire fresh listings only. When set to true any stale/divergent
listing is rejected. Defaults to true.
limit: Option<usize>Maximum number of results to return.
Implementations§
Source§impl ListingQuery
impl ListingQuery
pub fn limit_or_default(&self) -> usize
Sourcepub fn to_listing_query(&self) -> GenericListingQuery
pub fn to_listing_query(&self) -> GenericListingQuery
Translate this marketplace query into a listing query for use with
aggregate_generic_listing_reports.
Trait Implementations§
Source§impl Clone for ListingQuery
impl Clone for ListingQuery
Source§fn clone(&self) -> ListingQuery
fn clone(&self) -> ListingQuery
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more