pub struct Request {
pub doctypes: Option<Vec<String>>,
pub index: Option<String>,
pub limit: Option<i32>,
pub mode: Option<String>,
pub offset: Option<i32>,
pub project: Option<String>,
pub query: Option<String>,
}Fields§
§doctypes: Option<Vec<String>>DocTypes restricts the semantic leg to a subset of indexed knowledge types.
index: Option<String>Index names the lexical index to query. Defaults to "kb".
limit: Option<i32>Limit bounds the FUSED result set (default 10, max 50).
mode: Option<String>Mode selects the legs: auto (default) | text | semantic | hybrid.
offset: Option<i32>Offset pages the fused result set.
project: Option<String>Project narrows to one project scope within the org.
query: Option<String>Query is the natural-language or keyword query. Required.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Request
impl<'de> Deserialize<'de> for Request
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
impl StructuralPartialEq for Request
Auto Trait Implementations§
impl Freeze for Request
impl RefUnwindSafe for Request
impl Send for Request
impl Sync for Request
impl Unpin for Request
impl UnsafeUnpin for Request
impl UnwindSafe for Request
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