pub struct FidelityConfig {
pub preservation_level: PreservationLevel,
pub comment_preservation: CommentPreservationConfig,
pub processing_instruction_preservation: bool,
pub extension_preservation: ExtensionPreservationConfig,
pub attribute_preservation: AttributePreservationConfig,
pub namespace_preservation: NamespacePreservationConfig,
pub whitespace_preservation: WhitespacePreservationConfig,
}Expand description
Fidelity configuration for perfect XML preservation
Fields§
§preservation_level: PreservationLevelPreservation level for different XML components
comment_preservation: CommentPreservationConfigComment preservation settings
processing_instruction_preservation: boolProcessing instruction preservation
extension_preservation: ExtensionPreservationConfigExtension element preservation settings
attribute_preservation: AttributePreservationConfigAttribute preservation settings
namespace_preservation: NamespacePreservationConfigNamespace preservation settings
whitespace_preservation: WhitespacePreservationConfigWhitespace preservation settings
Trait Implementations§
Source§impl Clone for FidelityConfig
impl Clone for FidelityConfig
Source§fn clone(&self) -> FidelityConfig
fn clone(&self) -> FidelityConfig
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 FidelityConfig
impl Debug for FidelityConfig
Source§impl Default for FidelityConfig
impl Default for FidelityConfig
Source§impl<'de> Deserialize<'de> for FidelityConfig
impl<'de> Deserialize<'de> for FidelityConfig
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 FidelityConfig
impl RefUnwindSafe for FidelityConfig
impl Send for FidelityConfig
impl Sync for FidelityConfig
impl Unpin for FidelityConfig
impl UnwindSafe for FidelityConfig
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