pub struct FidelityOptions {
pub enable_perfect_fidelity: bool,
pub preserve_comments: bool,
pub preserve_processing_instructions: bool,
pub preserve_extensions: bool,
pub preserve_attribute_order: bool,
pub preserve_namespace_prefixes: bool,
pub canonicalization: CanonicalizationAlgorithm,
pub custom_canonicalization_rules: Option<CustomCanonicalizationRules>,
pub enable_deterministic_ordering: bool,
pub collect_statistics: bool,
pub enable_verification: bool,
pub verification_config: VerificationConfig,
}Expand description
Perfect Fidelity Engine configuration options
Fields§
§enable_perfect_fidelity: boolEnable perfect round-trip fidelity preservation
preserve_comments: boolPreserve all XML comments in their original positions
preserve_processing_instructions: boolPreserve processing instructions
preserve_extensions: boolPreserve unknown/extension elements and attributes
preserve_attribute_order: boolPreserve original attribute ordering when possible
preserve_namespace_prefixes: boolPreserve namespace prefixes from input
canonicalization: CanonicalizationAlgorithmCanonicalization algorithm to use
custom_canonicalization_rules: Option<CustomCanonicalizationRules>Custom canonicalization rules (used with Custom algorithm)
enable_deterministic_ordering: boolEnable deterministic element ordering
collect_statistics: boolCollect detailed building statistics
enable_verification: boolEnable build verification (double-check output)
verification_config: VerificationConfigVerification configuration
Trait Implementations§
Source§impl Clone for FidelityOptions
impl Clone for FidelityOptions
Source§fn clone(&self) -> FidelityOptions
fn clone(&self) -> FidelityOptions
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 FidelityOptions
impl Debug for FidelityOptions
Source§impl Default for FidelityOptions
impl Default for FidelityOptions
Source§impl<'de> Deserialize<'de> for FidelityOptions
impl<'de> Deserialize<'de> for FidelityOptions
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
Auto Trait Implementations§
impl Freeze for FidelityOptions
impl RefUnwindSafe for FidelityOptions
impl Send for FidelityOptions
impl Sync for FidelityOptions
impl Unpin for FidelityOptions
impl UnwindSafe for FidelityOptions
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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