#[non_exhaustive]pub struct KnowledgeSearchInput {Show 18 fields
pub org: Option<String>,
pub namespace: Option<String>,
pub query: String,
pub tags: Option<Vec<String>>,
pub since_seconds: Option<Option<Integer>>,
pub top_k: Option<Integer>,
pub namespace_scope: Option<KnowledgeSearchInputNamespaceScope>,
pub namespaces: Option<Vec<String>>,
pub search_mode: Option<KnowledgeSearchInputSearchMode>,
pub lexical_weight: Option<f64>,
pub narrow_spans: Option<bool>,
pub collapse_sections: Option<bool>,
pub uri_prefix: Option<Vec<String>>,
pub session_ids: Option<Vec<String>>,
pub source_classes: Option<Vec<String>>,
pub formats: Option<Vec<String>>,
pub block_types: Option<Vec<String>>,
pub rerank: Option<String>,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.org: Option<String>§namespace: Option<String>§query: String§since_seconds: Option<Option<Integer>>§top_k: Option<Integer>§namespace_scope: Option<KnowledgeSearchInputNamespaceScope>§namespaces: Option<Vec<String>>§search_mode: Option<KnowledgeSearchInputSearchMode>§lexical_weight: Option<f64>§narrow_spans: Option<bool>§collapse_sections: Option<bool>§uri_prefix: Option<Vec<String>>§session_ids: Option<Vec<String>>§source_classes: Option<Vec<String>>§formats: Option<Vec<String>>§block_types: Option<Vec<String>>§rerank: Option<String>Implementations§
Source§impl KnowledgeSearchInput
impl KnowledgeSearchInput
pub fn new(query: impl Into<String>) -> Self
pub fn org(self, org: impl Into<String>) -> Self
pub fn namespace(self, namespace: impl Into<String>) -> Self
pub fn since_seconds(self, since_seconds: impl Into<Integer>) -> Self
pub fn since_seconds_null(self) -> Self
pub fn top_k(self, top_k: impl Into<Integer>) -> Self
pub fn namespace_scope( self, namespace_scope: KnowledgeSearchInputNamespaceScope, ) -> Self
pub fn namespaces( self, namespaces: impl IntoIterator<Item = impl Into<String>>, ) -> Self
pub fn search_mode(self, search_mode: KnowledgeSearchInputSearchMode) -> Self
pub fn lexical_weight(self, lexical_weight: f64) -> Self
pub fn narrow_spans(self, narrow_spans: bool) -> Self
pub fn collapse_sections(self, collapse_sections: bool) -> Self
pub fn uri_prefix( self, uri_prefix: impl IntoIterator<Item = impl Into<String>>, ) -> Self
pub fn session_ids( self, session_ids: impl IntoIterator<Item = impl Into<String>>, ) -> Self
pub fn source_classes( self, source_classes: impl IntoIterator<Item = impl Into<String>>, ) -> Self
pub fn formats( self, formats: impl IntoIterator<Item = impl Into<String>>, ) -> Self
pub fn block_types( self, block_types: impl IntoIterator<Item = impl Into<String>>, ) -> Self
pub fn rerank(self, rerank: impl Into<String>) -> Self
pub async fn send( self, client: &Client, options: CallOptions, ) -> Result<CallResult<KnowledgeSearchOutput>, CallFailure>
Trait Implementations§
Source§impl Clone for KnowledgeSearchInput
impl Clone for KnowledgeSearchInput
Source§impl Debug for KnowledgeSearchInput
impl Debug for KnowledgeSearchInput
Source§impl<'de> Deserialize<'de> for KnowledgeSearchInput
impl<'de> Deserialize<'de> for KnowledgeSearchInput
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
Source§impl PartialEq for KnowledgeSearchInput
impl PartialEq for KnowledgeSearchInput
Source§impl Serialize for KnowledgeSearchInput
impl Serialize for KnowledgeSearchInput
impl StructuralPartialEq for KnowledgeSearchInput
Auto Trait Implementations§
impl Forget for KnowledgeSearchInput
impl Freeze for KnowledgeSearchInput
impl Move for KnowledgeSearchInput
impl RefUnwindSafe for KnowledgeSearchInput
impl Send for KnowledgeSearchInput
impl Sync for KnowledgeSearchInput
impl Unpin for KnowledgeSearchInput
impl UnsafeUnpin for KnowledgeSearchInput
impl UnwindSafe for KnowledgeSearchInput
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