#[non_exhaustive]pub struct CodeGrepInput {Show 28 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 pattern: CodeGrepInputPattern,
pub prioritize_patterns: Option<bool>,
pub regex: Option<bool>,
pub related_on_miss: Option<bool>,
pub related_on_prefix: Option<bool>,
pub include_dependencies: Option<bool>,
pub case_sensitive: Option<bool>,
pub context_lines: Option<Integer>,
pub path_prefix: Option<String>,
pub cursor: Option<String>,
pub exclude_unit_ids: Option<Vec<String>>,
pub mode: Option<CodeGrepInputMode>,
pub include_body: Option<bool>,
pub limit: Option<Option<Integer>>,
pub path_globs: Option<Vec<String>>,
pub exclude_globs: Option<Vec<String>>,
pub langs: Option<Vec<String>>,
pub namespaces: Option<Vec<String>>,
pub neighbours: Option<Option<bool>>,
pub neighbour_k: Option<Integer>,
pub deadline_ms: Option<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.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>§pattern: CodeGrepInputPattern§prioritize_patterns: Option<bool>§regex: Option<bool>§include_dependencies: Option<bool>§case_sensitive: Option<bool>§context_lines: Option<Integer>§path_prefix: Option<String>§cursor: Option<String>§exclude_unit_ids: Option<Vec<String>>§mode: Option<CodeGrepInputMode>§include_body: Option<bool>§limit: Option<Option<Integer>>§path_globs: Option<Vec<String>>§exclude_globs: Option<Vec<String>>§langs: Option<Vec<String>>§namespaces: Option<Vec<String>>§neighbours: Option<Option<bool>>§neighbour_k: Option<Integer>§deadline_ms: Option<Option<Integer>>Implementations§
Source§impl CodeGrepInput
impl CodeGrepInput
pub fn new(pattern: CodeGrepInputPattern) -> 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 prioritize_patterns(self, prioritize_patterns: bool) -> Self
pub fn regex(self, regex: bool) -> Self
pub fn include_dependencies(self, include_dependencies: bool) -> Self
pub fn case_sensitive(self, case_sensitive: bool) -> Self
pub fn context_lines(self, context_lines: impl Into<Integer>) -> 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 mode(self, mode: CodeGrepInputMode) -> Self
pub fn include_body(self, include_body: bool) -> Self
pub fn limit(self, limit: impl Into<Integer>) -> Self
pub fn limit_null(self) -> 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 namespaces( self, namespaces: impl IntoIterator<Item = impl Into<String>>, ) -> 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 fn deadline_ms(self, deadline_ms: impl Into<Integer>) -> Self
pub fn deadline_ms_null(self) -> Self
pub async fn send( self, client: &Client, options: CallOptions, ) -> Result<CallResult<CodeGrepOutput>, CallFailure>
Trait Implementations§
Source§impl Clone for CodeGrepInput
impl Clone for CodeGrepInput
Source§impl Debug for CodeGrepInput
impl Debug for CodeGrepInput
Source§impl<'de> Deserialize<'de> for CodeGrepInput
impl<'de> Deserialize<'de> for CodeGrepInput
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 CodeGrepInput
impl PartialEq for CodeGrepInput
Source§impl Serialize for CodeGrepInput
impl Serialize for CodeGrepInput
impl StructuralPartialEq for CodeGrepInput
Auto Trait Implementations§
impl Forget for CodeGrepInput
impl Freeze for CodeGrepInput
impl Move for CodeGrepInput
impl RefUnwindSafe for CodeGrepInput
impl Send for CodeGrepInput
impl Sync for CodeGrepInput
impl Unpin for CodeGrepInput
impl UnsafeUnpin for CodeGrepInput
impl UnwindSafe for CodeGrepInput
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