pub struct WriterConfig { /* private fields */ }Expand description
Controls XML serialization.
Implementations§
Source§impl WriterConfig
impl WriterConfig
pub fn compact() -> Self
pub fn pretty() -> Self
pub fn with_xml_declaration(self, include_declaration: bool) -> Self
pub fn with_encoding(self, encoding: impl Into<String>) -> Self
pub fn with_indent(self, indent: impl Into<String>) -> Self
pub fn include_declaration(&self) -> bool
pub fn encoding(&self) -> &str
pub fn indent(&self) -> &str
Trait Implementations§
Source§impl Clone for WriterConfig
impl Clone for WriterConfig
Source§fn clone(&self) -> WriterConfig
fn clone(&self) -> WriterConfig
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 WriterConfig
impl Debug for WriterConfig
Source§impl Default for WriterConfig
impl Default for WriterConfig
impl Eq for WriterConfig
Source§impl PartialEq for WriterConfig
impl PartialEq for WriterConfig
Source§fn eq(&self, other: &WriterConfig) -> bool
fn eq(&self, other: &WriterConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for WriterConfig
Auto Trait Implementations§
impl Freeze for WriterConfig
impl RefUnwindSafe for WriterConfig
impl Send for WriterConfig
impl Sync for WriterConfig
impl Unpin for WriterConfig
impl UnsafeUnpin for WriterConfig
impl UnwindSafe for WriterConfig
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