pub struct RetrieveOptions {
pub query: String,
pub scope_ids: ScopeIds,
pub token_budget: Option<u32>,
pub max_candidates: Option<u32>,
pub include_redacted: Option<bool>,
}Expand description
Options for a retrieval request.
Fields§
§query: String§scope_ids: ScopeIds§token_budget: Option<u32>Deprecated: token-budget assembly is a downstream-system responsibility.
Prefer max_candidates for bounded result sets.
max_candidates: Option<u32>§include_redacted: Option<bool>Trait Implementations§
Source§impl Clone for RetrieveOptions
impl Clone for RetrieveOptions
Source§fn clone(&self) -> RetrieveOptions
fn clone(&self) -> RetrieveOptions
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 RetrieveOptions
impl Debug for RetrieveOptions
Source§impl<'de> Deserialize<'de> for RetrieveOptions
impl<'de> Deserialize<'de> for RetrieveOptions
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 RetrieveOptions
impl PartialEq for RetrieveOptions
Source§fn eq(&self, other: &RetrieveOptions) -> bool
fn eq(&self, other: &RetrieveOptions) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for RetrieveOptions
impl Serialize for RetrieveOptions
impl StructuralPartialEq for RetrieveOptions
Auto Trait Implementations§
impl Freeze for RetrieveOptions
impl RefUnwindSafe for RetrieveOptions
impl Send for RetrieveOptions
impl Sync for RetrieveOptions
impl Unpin for RetrieveOptions
impl UnsafeUnpin for RetrieveOptions
impl UnwindSafe for RetrieveOptions
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