pub struct ContextMetadata {Show 13 fields
pub base_path: PathBuf,
pub focus_paths: Vec<String>,
pub diff: Option<ContextDiffMetadata>,
pub compression_mode: CompressionMode,
pub budget_tokens: u64,
pub metadata_budget_tokens: u64,
pub excerpt_budget_tokens: u64,
pub estimated_tokens: u64,
pub estimated_metadata_tokens: u64,
pub estimated_excerpt_tokens: u64,
pub files_considered: u64,
pub files_selected: u64,
pub truncated_files: u64,
}Fields§
§base_path: PathBuf§focus_paths: Vec<String>§diff: Option<ContextDiffMetadata>§compression_mode: CompressionMode§budget_tokens: u64§metadata_budget_tokens: u64§excerpt_budget_tokens: u64§estimated_tokens: u64§estimated_metadata_tokens: u64§estimated_excerpt_tokens: u64§files_considered: u64§files_selected: u64§truncated_files: u64Trait Implementations§
Source§impl Clone for ContextMetadata
impl Clone for ContextMetadata
Source§impl Debug for ContextMetadata
impl Debug for ContextMetadata
impl Eq for ContextMetadata
Source§impl PartialEq for ContextMetadata
impl PartialEq for ContextMetadata
Source§impl Serialize for ContextMetadata
impl Serialize for ContextMetadata
impl StructuralPartialEq for ContextMetadata
Auto Trait Implementations§
impl Freeze for ContextMetadata
impl RefUnwindSafe for ContextMetadata
impl Send for ContextMetadata
impl Sync for ContextMetadata
impl Unpin for ContextMetadata
impl UnsafeUnpin for ContextMetadata
impl UnwindSafe for ContextMetadata
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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