pub struct ExtractionBudgets {Show 13 fields
pub max_input_bytes_per_artifact: u64,
pub max_structural_depth_per_artifact: u64,
pub max_ast_depth_per_artifact: u64,
pub max_work_units_per_artifact: u64,
pub max_tree_sitter_nodes_per_artifact: u64,
pub max_observations_per_artifact: u64,
pub max_accumulated_string_bytes_per_artifact: u64,
pub max_serialized_output_bytes_per_artifact: u64,
pub max_string_bytes_per_value: u64,
pub max_portable_path_bytes_per_value: u64,
pub max_identifier_bytes_per_value: u64,
pub max_structured_wall_time_ms_per_artifact: u64,
pub max_tree_sitter_wall_time_ms_per_artifact: u64,
}Expand description
Effective extraction limits for one scan.
Fields§
§max_input_bytes_per_artifact: u64Input-byte maximum.
max_structural_depth_per_artifact: u64Structured-depth maximum.
max_ast_depth_per_artifact: u64Syntax-tree-depth maximum.
max_work_units_per_artifact: u64Structured-work maximum.
max_tree_sitter_nodes_per_artifact: u64Visited Tree-sitter-node maximum.
max_observations_per_artifact: u64Observation maximum.
max_accumulated_string_bytes_per_artifact: u64Accumulated extracted-string-byte maximum.
max_serialized_output_bytes_per_artifact: u64Serialized-output-byte maximum.
max_string_bytes_per_value: u64Per-string byte maximum.
max_portable_path_bytes_per_value: u64Per-portable-path byte maximum.
max_identifier_bytes_per_value: u64Per-identifier byte maximum.
max_structured_wall_time_ms_per_artifact: u64Structured wall-time maximum in milliseconds.
max_tree_sitter_wall_time_ms_per_artifact: u64Tree-sitter wall-time maximum in milliseconds.
Implementations§
Source§impl ExtractionBudgets
impl ExtractionBudgets
Sourcepub fn resolve(
overrides: Option<&ExtractionBudgetOverrides>,
) -> Result<Self, InvalidExtractionBudget>
pub fn resolve( overrides: Option<&ExtractionBudgetOverrides>, ) -> Result<Self, InvalidExtractionBudget>
Resolves a partial override after validating every effective value.
§Errors
Returns InvalidExtractionBudget when an effective value is zero or cannot be
represented by the running build.
Sourcepub fn fingerprint(&self) -> String
pub fn fingerprint(&self) -> String
Returns the stable canonical fingerprint used to authorize batch reuse.
Trait Implementations§
Source§impl Clone for ExtractionBudgets
impl Clone for ExtractionBudgets
Source§fn clone(&self) -> ExtractionBudgets
fn clone(&self) -> ExtractionBudgets
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 ExtractionBudgets
impl Debug for ExtractionBudgets
Source§impl Default for ExtractionBudgets
impl Default for ExtractionBudgets
Source§impl<'de> Deserialize<'de> for ExtractionBudgets
impl<'de> Deserialize<'de> for ExtractionBudgets
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 ExtractionBudgets
Source§impl JsonSchema for ExtractionBudgets
impl JsonSchema for ExtractionBudgets
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 moreSource§impl PartialEq for ExtractionBudgets
impl PartialEq for ExtractionBudgets
Source§impl Serialize for ExtractionBudgets
impl Serialize for ExtractionBudgets
impl StructuralPartialEq for ExtractionBudgets
Auto Trait Implementations§
impl Freeze for ExtractionBudgets
impl RefUnwindSafe for ExtractionBudgets
impl Send for ExtractionBudgets
impl Sync for ExtractionBudgets
impl Unpin for ExtractionBudgets
impl UnsafeUnpin for ExtractionBudgets
impl UnwindSafe for ExtractionBudgets
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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.