pub struct KnowledgeBaseQuery {
pub params: Vec<(&'static str, String)>,
}Fields§
§params: Vec<(&'static str, String)>Implementations§
Source§impl KnowledgeBaseQuery
impl KnowledgeBaseQuery
Sourcepub fn with_cursor(self, cursor: impl Into<String>) -> KnowledgeBaseQuery
pub fn with_cursor(self, cursor: impl Into<String>) -> KnowledgeBaseQuery
Used for fetching next page. Cursor is returned in the response.
Sourcepub fn with_page_size(self, page_size: u32) -> KnowledgeBaseQuery
pub fn with_page_size(self, page_size: u32) -> KnowledgeBaseQuery
How many documents to return at maximum. Can not exceed 100, defaults to 30.
Sourcepub fn with_search(self, search: impl Into<String>) -> KnowledgeBaseQuery
pub fn with_search(self, search: impl Into<String>) -> KnowledgeBaseQuery
If specified, the endpoint returns only such knowledge base documents whose names start with this string.
Sourcepub fn show_only_owned_documents(self) -> KnowledgeBaseQuery
pub fn show_only_owned_documents(self) -> KnowledgeBaseQuery
If set to true, the endpoint will return only documents owned by you (and not shared from somebody else). Defaults to false.
Sourcepub fn use_typesense(self) -> KnowledgeBaseQuery
pub fn use_typesense(self) -> KnowledgeBaseQuery
If set to true, the endpoint will use typesense DB to search for the documents. Defaults to false.
Trait Implementations§
Source§impl Clone for KnowledgeBaseQuery
impl Clone for KnowledgeBaseQuery
Source§fn clone(&self) -> KnowledgeBaseQuery
fn clone(&self) -> KnowledgeBaseQuery
Returns a duplicate of the value. Read more
1.0.0 · 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 KnowledgeBaseQuery
impl Debug for KnowledgeBaseQuery
Source§impl Default for KnowledgeBaseQuery
impl Default for KnowledgeBaseQuery
Source§fn default() -> KnowledgeBaseQuery
fn default() -> KnowledgeBaseQuery
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for KnowledgeBaseQuery
impl RefUnwindSafe for KnowledgeBaseQuery
impl Send for KnowledgeBaseQuery
impl Sync for KnowledgeBaseQuery
impl Unpin for KnowledgeBaseQuery
impl UnwindSafe for KnowledgeBaseQuery
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