#[non_exhaustive]pub struct SearchOpportunityAttachmentsOptions {
pub q: Option<String>,
pub top_k: Option<u32>,
pub include_extracted_text: bool,
}Expand description
Options for Client::search_opportunity_attachments — semantic search
over the extracted text of opportunity attachments (SOWs, PWSs, J&As).
q is required; an empty q causes the call to return
Error::Validation before any network request.
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.q: Option<String>Natural-language query. Required.
top_k: Option<u32>Maximum number of matches to return. None / 0 means
“use the server default”.
include_extracted_text: boolWhen true, returns the matched attachment text alongside metadata. Defaults to false to keep responses small.
Implementations§
Source§impl SearchOpportunityAttachmentsOptions
impl SearchOpportunityAttachmentsOptions
Sourcepub fn builder() -> SearchOpportunityAttachmentsOptionsBuilder
pub fn builder() -> SearchOpportunityAttachmentsOptionsBuilder
Create an instance of SearchOpportunityAttachmentsOptions using the builder syntax
Trait Implementations§
Source§impl Clone for SearchOpportunityAttachmentsOptions
impl Clone for SearchOpportunityAttachmentsOptions
Source§fn clone(&self) -> SearchOpportunityAttachmentsOptions
fn clone(&self) -> SearchOpportunityAttachmentsOptions
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 Default for SearchOpportunityAttachmentsOptions
impl Default for SearchOpportunityAttachmentsOptions
Source§fn default() -> SearchOpportunityAttachmentsOptions
fn default() -> SearchOpportunityAttachmentsOptions
Returns the “default value” for a type. Read more
Source§impl PartialEq for SearchOpportunityAttachmentsOptions
impl PartialEq for SearchOpportunityAttachmentsOptions
Source§fn eq(&self, other: &SearchOpportunityAttachmentsOptions) -> bool
fn eq(&self, other: &SearchOpportunityAttachmentsOptions) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for SearchOpportunityAttachmentsOptions
impl StructuralPartialEq for SearchOpportunityAttachmentsOptions
Auto Trait Implementations§
impl Freeze for SearchOpportunityAttachmentsOptions
impl RefUnwindSafe for SearchOpportunityAttachmentsOptions
impl Send for SearchOpportunityAttachmentsOptions
impl Sync for SearchOpportunityAttachmentsOptions
impl Unpin for SearchOpportunityAttachmentsOptions
impl UnsafeUnpin for SearchOpportunityAttachmentsOptions
impl UnwindSafe for SearchOpportunityAttachmentsOptions
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