pub struct XmlConfig {
pub max_depth: usize,
}Expand description
Configuration for XmlDataFormat. All fields have hardened defaults;
setting a non-default value is the per-item explicit choice per ADR-0033.
Fields§
§max_depth: usizeMaximum XML nesting depth accepted by unmarshal (DoS cap).
Default 100. Inert during marshal.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for XmlConfig
impl<'de> Deserialize<'de> for XmlConfig
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 XmlConfig
impl RefUnwindSafe for XmlConfig
impl Send for XmlConfig
impl Sync for XmlConfig
impl Unpin for XmlConfig
impl UnsafeUnpin for XmlConfig
impl UnwindSafe for XmlConfig
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