Struct CatalogueQuery
pub struct CatalogueQuery {
pub canonical_route: Option<CanonicalActionRoute>,
pub provider: Option<String>,
pub view_resource: Option<ViewResourceQuery>,
pub parent_resource: Option<String>,
pub needle: String,
pub target: Option<ActionAddress>,
pub revision: Option<String>,
pub cursor: Vec<u8>,
pub max_results: u32,
pub limits: Option<CatalogueLimits>,
}Expand description
One bounded request for catalogue rows. Every field narrows; the empty query lists the first page of everything offered.
Fields§
§canonical_route: Option<CanonicalActionRoute>Provider-only lookup of one exact route’s custodian. Cannot accompany a provider, cursor, target, view lookup, or row filter.
provider: Option<String>Only rows from this provider (a token a previous page issued).
view_resource: Option<ViewResourceQuery>Read-only view discovery, separate from the document action catalogue.
parent_resource: Option<String>Only the direct children of this resource; None is the top level.
needle: StringOnly rows whose labels, ids or parameters contain this text (case-insensitive).
target: Option<ActionAddress>Only this exact action, re-resolved against the provider now: the check to make immediately before invoking a row from an older page.
revision: Option<String>The revision cursor (or target) was obtained at. A host refuses a
cursor from another revision as stale rather than skipping rows.
cursor: Vec<u8>Opaque continuation from the previous page; empty starts over.
max_results: u32Upper bound on rows, clamped to MAX_CATALOGUE_PAGE. With no
provider named, zero asks only for CataloguePage::providers.
limits: Option<CatalogueLimits>Optional upper bounds on the work a provider spends answering.
Implementations§
§impl CatalogueQuery
impl CatalogueQuery
pub fn resolve(
target: &RemoteActionTarget,
revision: impl Into<String>,
) -> CatalogueQuery
pub fn resolve( target: &RemoteActionTarget, revision: impl Into<String>, ) -> CatalogueQuery
A query that re-resolves exactly target at revision.
Trait Implementations§
§impl Clone for CatalogueQuery
impl Clone for CatalogueQuery
§fn clone(&self) -> CatalogueQuery
fn clone(&self) -> CatalogueQuery
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more§impl Debug for CatalogueQuery
impl Debug for CatalogueQuery
§impl Default for CatalogueQuery
impl Default for CatalogueQuery
§fn default() -> CatalogueQuery
fn default() -> CatalogueQuery
§impl<'de> Deserialize<'de> for CatalogueQuery
impl<'de> Deserialize<'de> for CatalogueQuery
§fn deserialize<__D>(
__deserializer: __D,
) -> Result<CatalogueQuery, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<CatalogueQuery, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
§impl PartialEq for CatalogueQuery
impl PartialEq for CatalogueQuery
§impl Serialize for CatalogueQuery
impl Serialize for CatalogueQuery
§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl Eq for CatalogueQuery
impl StructuralPartialEq for CatalogueQuery
Auto Trait Implementations§
impl Freeze for CatalogueQuery
impl RefUnwindSafe for CatalogueQuery
impl Send for CatalogueQuery
impl Sync for CatalogueQuery
impl Unpin for CatalogueQuery
impl UnsafeUnpin for CatalogueQuery
impl UnwindSafe for CatalogueQuery
Blanket Implementations§
§impl<T> AnyEq for T
impl<T> AnyEq for T
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more