pub struct AnalyzeFileImpactInput {
pub path: String,
pub new_file: Option<bool>,
pub include_co_changes: Option<bool>,
pub co_changes_limit: Option<u32>,
pub estimate: Option<bool>,
}Expand description
Input for analyze_file_impact.
Fields§
§path: StringRelative path to the file to re-read from disk.
new_file: Option<bool>When true, treat the file as newly created and index it.
include_co_changes: Option<bool>When true, also include git temporal co-change data (files that historically change together with this file).
co_changes_limit: Option<u32>Maximum co-changing files to return (default 10). Only used when include_co_changes=true.
estimate: Option<bool>When true, return an approximate token cost estimate instead of actual content.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AnalyzeFileImpactInput
impl<'de> Deserialize<'de> for AnalyzeFileImpactInput
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 JsonSchema for AnalyzeFileImpactInput
impl JsonSchema for AnalyzeFileImpactInput
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for AnalyzeFileImpactInput
impl RefUnwindSafe for AnalyzeFileImpactInput
impl Send for AnalyzeFileImpactInput
impl Sync for AnalyzeFileImpactInput
impl Unpin for AnalyzeFileImpactInput
impl UnsafeUnpin for AnalyzeFileImpactInput
impl UnwindSafe for AnalyzeFileImpactInput
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more