pub struct XmlValidatorBuilder { /* private fields */ }Implementations§
Source§impl XmlValidatorBuilder
impl XmlValidatorBuilder
Sourcepub fn with_max_depth(self, depth: usize) -> Self
pub fn with_max_depth(self, depth: usize) -> Self
Sets the maximum allowed depth of the XML document.
Sourcepub fn with_max_attribute_count(self, count: usize) -> Self
pub fn with_max_attribute_count(self, count: usize) -> Self
Sets the maximum allowed number of attributes in an element.
Sourcepub fn with_max_child_count(self, count: usize) -> Self
pub fn with_max_child_count(self, count: usize) -> Self
Sets the maximum allowed number of children in an element.
Sourcepub fn with_max_text_length(self, length: usize) -> Self
pub fn with_max_text_length(self, length: usize) -> Self
Sets the maximum allowed length of the text in an element.
Sourcepub fn with_max_attribute_length(self, length: usize) -> Self
pub fn with_max_attribute_length(self, length: usize) -> Self
Sets the maximum allowed length of the attribute value.
Sourcepub fn with_max_comment_length(self, length: usize) -> Self
pub fn with_max_comment_length(self, length: usize) -> Self
Sets the maximum allowed length of the comment in an element.
Sourcepub fn build(self) -> XmlValidator
pub fn build(self) -> XmlValidator
Builds the validation instance with the specified configuration.
Trait Implementations§
Source§impl Debug for XmlValidatorBuilder
impl Debug for XmlValidatorBuilder
Source§impl Default for XmlValidatorBuilder
impl Default for XmlValidatorBuilder
Source§fn default() -> XmlValidatorBuilder
fn default() -> XmlValidatorBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for XmlValidatorBuilder
impl RefUnwindSafe for XmlValidatorBuilder
impl Send for XmlValidatorBuilder
impl Sync for XmlValidatorBuilder
impl Unpin for XmlValidatorBuilder
impl UnsafeUnpin for XmlValidatorBuilder
impl UnwindSafe for XmlValidatorBuilder
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