pub struct SimilarCodeLimits {
pub max_files: u64,
pub max_functions: u64,
pub max_source_bytes: u64,
pub max_function_bytes: u64,
pub max_batch_size: u64,
pub max_vector_bytes: u64,
pub max_comparisons: u64,
pub max_candidates: u64,
pub max_neighbors_per_function: u64,
pub timeout_ms: u64,
}Expand description
Effective resource limits for a similar-code run.
Fields§
§max_files: u64Maximum source files admitted.
max_functions: u64Maximum extracted functions admitted.
max_source_bytes: u64Maximum aggregate normalized source bytes admitted.
max_function_bytes: u64Maximum normalized bytes admitted for one function.
max_batch_size: u64Maximum embedding batch size.
max_vector_bytes: u64Maximum vector bytes retained for comparison.
max_comparisons: u64Maximum pair comparisons performed.
max_candidates: u64Maximum candidates returned.
max_neighbors_per_function: u64Maximum returned neighbors per function.
timeout_ms: u64End-to-end timeout in milliseconds.
Trait Implementations§
Source§impl Clone for SimilarCodeLimits
impl Clone for SimilarCodeLimits
Source§impl Debug for SimilarCodeLimits
impl Debug for SimilarCodeLimits
Source§impl<'de> Deserialize<'de> for SimilarCodeLimits
impl<'de> Deserialize<'de> for SimilarCodeLimits
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
impl Eq for SimilarCodeLimits
Source§impl PartialEq for SimilarCodeLimits
impl PartialEq for SimilarCodeLimits
Source§impl Serialize for SimilarCodeLimits
impl Serialize for SimilarCodeLimits
impl StructuralPartialEq for SimilarCodeLimits
Auto Trait Implementations§
impl Freeze for SimilarCodeLimits
impl RefUnwindSafe for SimilarCodeLimits
impl Send for SimilarCodeLimits
impl Sync for SimilarCodeLimits
impl Unpin for SimilarCodeLimits
impl UnsafeUnpin for SimilarCodeLimits
impl UnwindSafe for SimilarCodeLimits
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.