pub struct NormalizationConfig {
pub ignore_identifiers: Option<bool>,
pub ignore_string_values: Option<bool>,
pub ignore_numeric_values: Option<bool>,
}Expand description
Fine-grained normalization overrides.
Each option, when set to Some(true), forces that normalization regardless of
the detection mode. When set to Some(false), it forces preservation. When
None, the detection mode’s default behavior applies.
Fields§
§ignore_identifiers: Option<bool>Blind all identifiers (variable names, function names, etc.) to the same hash.
Default in semantic mode.
ignore_string_values: Option<bool>Blind string literal values to the same hash.
Default in weak and semantic modes.
ignore_numeric_values: Option<bool>Blind numeric literal values to the same hash.
Default in semantic mode.
Trait Implementations§
Source§impl Clone for NormalizationConfig
impl Clone for NormalizationConfig
Source§fn clone(&self) -> NormalizationConfig
fn clone(&self) -> NormalizationConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 NormalizationConfig
impl Debug for NormalizationConfig
Source§impl Default for NormalizationConfig
impl Default for NormalizationConfig
Source§fn default() -> NormalizationConfig
fn default() -> NormalizationConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for NormalizationConfig
impl<'de> Deserialize<'de> for NormalizationConfig
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 NormalizationConfig
impl JsonSchema for NormalizationConfig
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 NormalizationConfig
impl RefUnwindSafe for NormalizationConfig
impl Send for NormalizationConfig
impl Sync for NormalizationConfig
impl Unpin for NormalizationConfig
impl UnsafeUnpin for NormalizationConfig
impl UnwindSafe for NormalizationConfig
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