pub struct XmlWriteOptions {
pub max_output_bytes: usize,
pub max_depth: usize,
pub max_attributes_per_element: usize,
pub write_document_declaration: bool,
}Expand description
Finite output limits and document options for XmlStreamWriter.
Fields§
§max_output_bytes: usize§max_depth: usize§max_attributes_per_element: usize§write_document_declaration: boolImplementations§
Source§impl XmlWriteOptions
impl XmlWriteOptions
pub const fn new() -> Self
pub const fn max_output_bytes(self, value: usize) -> Self
pub const fn max_depth(self, value: usize) -> Self
pub const fn max_attributes_per_element(self, value: usize) -> Self
pub const fn write_document_declaration(self, value: bool) -> Self
Trait Implementations§
Source§impl Clone for XmlWriteOptions
impl Clone for XmlWriteOptions
Source§fn clone(&self) -> XmlWriteOptions
fn clone(&self) -> XmlWriteOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 XmlWriteOptions
impl Debug for XmlWriteOptions
Source§impl Default for XmlWriteOptions
impl Default for XmlWriteOptions
Source§impl PartialEq for XmlWriteOptions
impl PartialEq for XmlWriteOptions
Source§fn eq(&self, other: &XmlWriteOptions) -> bool
fn eq(&self, other: &XmlWriteOptions) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for XmlWriteOptions
impl Eq for XmlWriteOptions
impl StructuralPartialEq for XmlWriteOptions
Auto Trait Implementations§
impl Freeze for XmlWriteOptions
impl RefUnwindSafe for XmlWriteOptions
impl Send for XmlWriteOptions
impl Sync for XmlWriteOptions
impl Unpin for XmlWriteOptions
impl UnsafeUnpin for XmlWriteOptions
impl UnwindSafe for XmlWriteOptions
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