#[non_exhaustive]pub struct CodeSearchInput {Show 36 fields
pub include_lessons: Option<bool>,
pub lesson_namespaces: Option<Vec<String>>,
pub org: Option<String>,
pub namespace: Option<String>,
pub agent: Option<String>,
pub user_id: Option<String>,
pub consumer: Option<String>,
pub query: String,
pub top_k: Option<Integer>,
pub token_budget: Option<Option<Integer>>,
pub path_prefix: Option<String>,
pub cursor: Option<String>,
pub exclude_unit_ids: Option<Vec<String>>,
pub rerank: Option<String>,
pub expand: Option<bool>,
pub annotate: Option<bool>,
pub bodies: Option<Option<CodeSearchInputBodies>>,
pub kind_prior: Option<Option<CodeSearchInputKindPrior>>,
pub pr_leg_before: Option<Option<String>>,
pub embedding_model: Option<String>,
pub fresh: Option<bool>,
pub min_fan_in: Option<Integer>,
pub sort_by: Option<CodeSearchInputSortBy>,
pub pattern: Option<String>,
pub regex: Option<bool>,
pub case_sensitive: Option<bool>,
pub path_globs: Option<Vec<String>>,
pub exclude_globs: Option<Vec<String>>,
pub langs: Option<Vec<String>>,
pub legs: Option<Option<CodeSearchInputLegs>>,
pub track_path: Option<String>,
pub vector_model: Option<String>,
pub vector_shortlist: Option<Option<Integer>>,
pub llm_legs: Option<Option<CodeSearchInputLlmLegs>>,
pub deadline_ms: Option<Option<Integer>>,
pub namespaces: Option<Vec<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.include_lessons: Option<bool>§lesson_namespaces: Option<Vec<String>>§org: Option<String>§namespace: Option<String>§agent: Option<String>§user_id: Option<String>§consumer: Option<String>§query: String§top_k: Option<Integer>§token_budget: Option<Option<Integer>>§path_prefix: Option<String>§cursor: Option<String>§exclude_unit_ids: Option<Vec<String>>§rerank: Option<String>§expand: Option<bool>§annotate: Option<bool>§bodies: Option<Option<CodeSearchInputBodies>>§kind_prior: Option<Option<CodeSearchInputKindPrior>>§pr_leg_before: Option<Option<String>>§embedding_model: Option<String>§fresh: Option<bool>§min_fan_in: Option<Integer>§sort_by: Option<CodeSearchInputSortBy>§pattern: Option<String>§regex: Option<bool>§case_sensitive: Option<bool>§path_globs: Option<Vec<String>>§exclude_globs: Option<Vec<String>>§langs: Option<Vec<String>>§legs: Option<Option<CodeSearchInputLegs>>§track_path: Option<String>§vector_model: Option<String>§vector_shortlist: Option<Option<Integer>>§llm_legs: Option<Option<CodeSearchInputLlmLegs>>§deadline_ms: Option<Option<Integer>>§namespaces: Option<Vec<String>>Implementations§
Source§impl CodeSearchInput
impl CodeSearchInput
pub fn new(query: impl Into<String>) -> Self
pub fn include_lessons(self, include_lessons: bool) -> Self
pub fn lesson_namespaces( self, lesson_namespaces: impl IntoIterator<Item = impl Into<String>>, ) -> Self
pub fn org(self, org: impl Into<String>) -> Self
pub fn namespace(self, namespace: impl Into<String>) -> Self
pub fn agent(self, agent: impl Into<String>) -> Self
pub fn user_id(self, user_id: impl Into<String>) -> Self
pub fn consumer(self, consumer: impl Into<String>) -> Self
pub fn top_k(self, top_k: impl Into<Integer>) -> Self
pub fn token_budget(self, token_budget: impl Into<Integer>) -> Self
pub fn token_budget_null(self) -> Self
pub fn path_prefix(self, path_prefix: impl Into<String>) -> Self
pub fn cursor(self, cursor: impl Into<String>) -> Self
pub fn exclude_unit_ids( self, exclude_unit_ids: impl IntoIterator<Item = impl Into<String>>, ) -> Self
pub fn rerank(self, rerank: impl Into<String>) -> Self
pub fn expand(self, expand: bool) -> Self
pub fn annotate(self, annotate: bool) -> Self
pub fn bodies(self, bodies: CodeSearchInputBodies) -> Self
pub fn bodies_null(self) -> Self
pub fn kind_prior(self, kind_prior: CodeSearchInputKindPrior) -> Self
pub fn kind_prior_null(self) -> Self
pub fn pr_leg_before(self, pr_leg_before: impl Into<String>) -> Self
pub fn pr_leg_before_null(self) -> Self
pub fn embedding_model(self, embedding_model: impl Into<String>) -> Self
pub fn fresh(self, fresh: bool) -> Self
pub fn min_fan_in(self, min_fan_in: impl Into<Integer>) -> Self
pub fn sort_by(self, sort_by: CodeSearchInputSortBy) -> Self
pub fn pattern(self, pattern: impl Into<String>) -> Self
pub fn regex(self, regex: bool) -> Self
pub fn case_sensitive(self, case_sensitive: bool) -> Self
pub fn path_globs( self, path_globs: impl IntoIterator<Item = impl Into<String>>, ) -> Self
pub fn exclude_globs( self, exclude_globs: impl IntoIterator<Item = impl Into<String>>, ) -> Self
pub fn langs(self, langs: impl IntoIterator<Item = impl Into<String>>) -> Self
pub fn legs(self, legs: CodeSearchInputLegs) -> Self
pub fn legs_null(self) -> Self
pub fn track_path(self, track_path: impl Into<String>) -> Self
pub fn vector_model(self, vector_model: impl Into<String>) -> Self
pub fn vector_shortlist(self, vector_shortlist: impl Into<Integer>) -> Self
pub fn vector_shortlist_null(self) -> Self
pub fn llm_legs(self, llm_legs: CodeSearchInputLlmLegs) -> Self
pub fn llm_legs_null(self) -> Self
pub fn deadline_ms(self, deadline_ms: impl Into<Integer>) -> Self
pub fn deadline_ms_null(self) -> Self
pub fn namespaces( self, namespaces: impl IntoIterator<Item = impl Into<String>>, ) -> Self
pub async fn send( self, client: &Client, options: CallOptions, ) -> Result<CallResult<CodeSearchOutput>, CallFailure>
Trait Implementations§
Source§impl Clone for CodeSearchInput
impl Clone for CodeSearchInput
Source§impl Debug for CodeSearchInput
impl Debug for CodeSearchInput
Source§impl<'de> Deserialize<'de> for CodeSearchInput
impl<'de> Deserialize<'de> for CodeSearchInput
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 CodeSearchInput
impl PartialEq for CodeSearchInput
Source§impl Serialize for CodeSearchInput
impl Serialize for CodeSearchInput
impl StructuralPartialEq for CodeSearchInput
Auto Trait Implementations§
impl Forget for CodeSearchInput
impl Freeze for CodeSearchInput
impl Move for CodeSearchInput
impl RefUnwindSafe for CodeSearchInput
impl Send for CodeSearchInput
impl Sync for CodeSearchInput
impl Unpin for CodeSearchInput
impl UnsafeUnpin for CodeSearchInput
impl UnwindSafe for CodeSearchInput
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