pub struct CatalogSearchRequest {
pub contract: CatalogClientContract,
pub kinds: Option<Vec<CatalogCandidateKind>>,
pub limit: Option<i32>,
pub query: String,
}Expand description
A bounded catalog search. Both the query length and the result count are capped by the schema so a caller cannot request an unbounded scan.
Experimental. This type is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases.
Fields§
§contract: CatalogClientContractProtocol version and capabilities the caller requires.
kinds: Option<Vec<CatalogCandidateKind>>Restrict results to these candidate kinds. When omitted, every kind the runtime supports is searched.
limit: Option<i32>Maximum number of candidates to return. Defaults to 10 when omitted.
query: StringFree-text search query. Never written to logs or telemetry.
Trait Implementations§
Source§impl Clone for CatalogSearchRequest
impl Clone for CatalogSearchRequest
Source§fn clone(&self) -> CatalogSearchRequest
fn clone(&self) -> CatalogSearchRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CatalogSearchRequest
impl Debug for CatalogSearchRequest
Source§impl Default for CatalogSearchRequest
impl Default for CatalogSearchRequest
Source§fn default() -> CatalogSearchRequest
fn default() -> CatalogSearchRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CatalogSearchRequest
impl<'de> Deserialize<'de> for CatalogSearchRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for CatalogSearchRequest
impl RefUnwindSafe for CatalogSearchRequest
impl Send for CatalogSearchRequest
impl Sync for CatalogSearchRequest
impl Unpin for CatalogSearchRequest
impl UnsafeUnpin for CatalogSearchRequest
impl UnwindSafe for CatalogSearchRequest
Blanket Implementations§
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
Mutably borrows from an owned value. Read more