pub struct CachedExtractionFailure {
pub file_path: String,
pub content_hash: String,
pub kind: ExtractionFailureKind,
pub max_file_tokens: Option<usize>,
pub message: String,
pub failed_at: String,
}Fields§
§file_path: String§content_hash: String§kind: ExtractionFailureKind§max_file_tokens: Option<usize>The effective cap that produced a too_large failure. Older cache rows
may not have this value, so callers also understand the legacy message.
message: String§failed_at: StringImplementations§
Source§impl CachedExtractionFailure
impl CachedExtractionFailure
pub fn applies_at_max_file_tokens( &self, effective_max_file_tokens: usize, ) -> bool
pub fn required_max_file_tokens(&self) -> Option<usize>
Trait Implementations§
Source§impl Clone for CachedExtractionFailure
impl Clone for CachedExtractionFailure
Source§fn clone(&self) -> CachedExtractionFailure
fn clone(&self) -> CachedExtractionFailure
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CachedExtractionFailure
impl Debug for CachedExtractionFailure
impl Eq for CachedExtractionFailure
Source§impl PartialEq for CachedExtractionFailure
impl PartialEq for CachedExtractionFailure
Source§impl Serialize for CachedExtractionFailure
impl Serialize for CachedExtractionFailure
impl StructuralPartialEq for CachedExtractionFailure
Auto Trait Implementations§
impl Freeze for CachedExtractionFailure
impl RefUnwindSafe for CachedExtractionFailure
impl Send for CachedExtractionFailure
impl Sync for CachedExtractionFailure
impl Unpin for CachedExtractionFailure
impl UnsafeUnpin for CachedExtractionFailure
impl UnwindSafe for CachedExtractionFailure
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.