Struct xml_builder::XMLBuilder
source · pub struct XMLBuilder { /* private fields */ }
Expand description
Builder structure used to generate a custom XML structure.
Implementations§
source§impl XMLBuilder
impl XMLBuilder
sourcepub fn version(self, version: XMLVersion) -> Self
pub fn version(self, version: XMLVersion) -> Self
Sets the XML version attribute field.
§Arguments
version
- An enum value representing the new version to use for the XML.
sourcepub fn encoding(self, encoding: String) -> Self
pub fn encoding(self, encoding: String) -> Self
Sets the XML encoding attribute field.
§Arguments
encoding
- A String representing the encoding to use for the document.
sourcepub fn standalone(self, standalone: Option<bool>) -> Self
pub fn standalone(self, standalone: Option<bool>) -> Self
Sets the standalone attribute for this XML document.
sourcepub fn sort_attributes(self, sort: bool) -> Self
pub fn sort_attributes(self, sort: bool) -> Self
Enables attributes sorting.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for XMLBuilder
impl RefUnwindSafe for XMLBuilder
impl Send for XMLBuilder
impl Sync for XMLBuilder
impl Unpin for XMLBuilder
impl UnwindSafe for XMLBuilder
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