Struct atom_syndication::extension::ExtensionBuilder
[−]
[src]
pub struct ExtensionBuilder { /* fields omitted */ }
Builder for Extension
.
Methods
impl ExtensionBuilder
[src]
fn name<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
[src]
The qualified name of the extension element.
fn value<VALUE: Into<Option<String>>>(&mut self, value: VALUE) -> &mut Self
[src]
The content of the extension element.
fn attrs<VALUE: Into<HashMap<String, String>>>(
&mut self,
value: VALUE
) -> &mut Self
[src]
&mut self,
value: VALUE
) -> &mut Self
The attributes for the extension element.
fn children<VALUE: Into<HashMap<String, Vec<Extension>>>>(
&mut self,
value: VALUE
) -> &mut Self
[src]
&mut self,
value: VALUE
) -> &mut Self
The children of the extension element. A map of local names to child elements.
fn build(&self) -> Result<Extension, String>
[src]
Trait Implementations
impl Default for ExtensionBuilder
[src]
fn default() -> ExtensionBuilder
[src]
Returns the "default value" for a type. Read more
impl Clone for ExtensionBuilder
[src]
fn clone(&self) -> ExtensionBuilder
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more