#[non_exhaustive]pub struct CodeSymbolInput {Show 26 fields
pub org: Option<String>,
pub namespace: Option<String>,
pub agent: Option<String>,
pub user_id: Option<String>,
pub consumer: Option<String>,
pub name: Option<String>,
pub symbol_id: Option<String>,
pub include_body: Option<bool>,
pub include_history: Option<bool>,
pub include_examples: Option<bool>,
pub test_examples_only: Option<bool>,
pub example_context_lines: Option<Integer>,
pub include_lessons: Option<bool>,
pub lesson_namespaces: Option<Vec<String>>,
pub token_budget: Option<Integer>,
pub min_fan_in: Option<Integer>,
pub sort_by: Option<CodeSymbolInputSortBy>,
pub uses: Option<Option<bool>>,
pub uses_limit: Option<Integer>,
pub uses_brief: Option<bool>,
pub near_paths: Option<Vec<String>>,
pub pr_number: Option<Integer>,
pub namespaces: Option<Vec<String>>,
pub presence: Option<bool>,
pub neighbours: Option<Option<bool>>,
pub neighbour_k: Option<Integer>,
}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.org: Option<String>§namespace: Option<String>§agent: Option<String>§user_id: Option<String>§consumer: Option<String>§name: Option<String>§symbol_id: Option<String>§include_body: Option<bool>§include_history: Option<bool>§include_examples: Option<bool>§test_examples_only: Option<bool>§example_context_lines: Option<Integer>§include_lessons: Option<bool>§lesson_namespaces: Option<Vec<String>>§token_budget: Option<Integer>§min_fan_in: Option<Integer>§sort_by: Option<CodeSymbolInputSortBy>§uses: Option<Option<bool>>§uses_limit: Option<Integer>§uses_brief: Option<bool>§near_paths: Option<Vec<String>>§pr_number: Option<Integer>§namespaces: Option<Vec<String>>§presence: Option<bool>§neighbours: Option<Option<bool>>§neighbour_k: Option<Integer>Implementations§
Source§impl CodeSymbolInput
impl CodeSymbolInput
pub fn new() -> 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 name(self, name: impl Into<String>) -> Self
pub fn symbol_id(self, symbol_id: impl Into<String>) -> Self
pub fn include_body(self, include_body: bool) -> Self
pub fn include_history(self, include_history: bool) -> Self
pub fn include_examples(self, include_examples: bool) -> Self
pub fn test_examples_only(self, test_examples_only: bool) -> Self
pub fn example_context_lines( self, example_context_lines: impl Into<Integer>, ) -> 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 token_budget(self, token_budget: impl Into<Integer>) -> Self
pub fn min_fan_in(self, min_fan_in: impl Into<Integer>) -> Self
pub fn sort_by(self, sort_by: CodeSymbolInputSortBy) -> Self
pub fn uses(self, uses: bool) -> Self
pub fn uses_null(self) -> Self
pub fn uses_limit(self, uses_limit: impl Into<Integer>) -> Self
pub fn uses_brief(self, uses_brief: bool) -> Self
pub fn near_paths( self, near_paths: impl IntoIterator<Item = impl Into<String>>, ) -> Self
pub fn pr_number(self, pr_number: impl Into<Integer>) -> Self
pub fn namespaces( self, namespaces: impl IntoIterator<Item = impl Into<String>>, ) -> Self
pub fn presence(self, presence: bool) -> Self
pub fn neighbours(self, neighbours: bool) -> Self
pub fn neighbours_null(self) -> Self
pub fn neighbour_k(self, neighbour_k: impl Into<Integer>) -> Self
pub async fn send( self, client: &Client, options: CallOptions, ) -> Result<CallResult<CodeSymbolOutput>, CallFailure>
Trait Implementations§
Source§impl Clone for CodeSymbolInput
impl Clone for CodeSymbolInput
Source§impl Debug for CodeSymbolInput
impl Debug for CodeSymbolInput
Source§impl Default for CodeSymbolInput
impl Default for CodeSymbolInput
Source§impl<'de> Deserialize<'de> for CodeSymbolInput
impl<'de> Deserialize<'de> for CodeSymbolInput
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 CodeSymbolInput
impl PartialEq for CodeSymbolInput
Source§impl Serialize for CodeSymbolInput
impl Serialize for CodeSymbolInput
impl StructuralPartialEq for CodeSymbolInput
Auto Trait Implementations§
impl Forget for CodeSymbolInput
impl Freeze for CodeSymbolInput
impl Move for CodeSymbolInput
impl RefUnwindSafe for CodeSymbolInput
impl Send for CodeSymbolInput
impl Sync for CodeSymbolInput
impl Unpin for CodeSymbolInput
impl UnsafeUnpin for CodeSymbolInput
impl UnwindSafe for CodeSymbolInput
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