pub struct DeOptions {
pub parse: ParseOptions,
pub text_field_name: &'static str,
pub value_field_name: &'static str,
pub attribute_prefix: char,
pub allow_unknown_fields: bool,
pub honor_xsi_nil: bool,
}Expand description
Tunables for the deserializer. Defaults match quick-xml’s conventions for drop-in compatibility.
Fields§
§parse: ParseOptionsForwarded to the underlying XmlReader.
text_field_name: &'static strField name that collects element text content. Default "$text".
value_field_name: &'static strField name that collects heterogeneous child elements as a sequence.
Default "$value".
attribute_prefix: charPrefix that marks a field as mapping to an XML attribute.
Default '@'.
allow_unknown_fields: boolIf false, unknown attributes and unknown child elements produce an
error instead of being skipped. Default true.
honor_xsi_nil: boolIf true, an element carrying xsi:nil="true" deserializes to
serde None and its content is skipped. Default true.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for DeOptions
impl !UnwindSafe for DeOptions
impl Freeze for DeOptions
impl Send for DeOptions
impl Sync for DeOptions
impl Unpin for DeOptions
impl UnsafeUnpin for DeOptions
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