Struct rss::extension::ExtensionBuilder
source · pub struct ExtensionBuilder { /* private fields */ }
Expand description
Builder for Extension
.
Implementations§
source§impl ExtensionBuilder
impl ExtensionBuilder
sourcepub fn name<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn name<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
The qualified name of the extension element.
sourcepub fn value<VALUE: Into<Option<String>>>(&mut self, value: VALUE) -> &mut Self
pub fn value<VALUE: Into<Option<String>>>(&mut self, value: VALUE) -> &mut Self
The content of the extension element.
sourcepub fn attrs<VALUE: Into<BTreeMap<String, String>>>(
&mut self,
value: VALUE
) -> &mut Self
pub fn attrs<VALUE: Into<BTreeMap<String, String>>>( &mut self, value: VALUE ) -> &mut Self
The attributes for the extension element.
sourcepub fn attr<VALUE>(&mut self, item: VALUE) -> &mut Self
pub fn attr<VALUE>(&mut self, item: VALUE) -> &mut Self
The attributes for the extension element.
Trait Implementations§
source§impl Clone for ExtensionBuilder
impl Clone for ExtensionBuilder
source§fn clone(&self) -> ExtensionBuilder
fn clone(&self) -> ExtensionBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for ExtensionBuilder
impl RefUnwindSafe for ExtensionBuilder
impl Send for ExtensionBuilder
impl Sync for ExtensionBuilder
impl Unpin for ExtensionBuilder
impl UnwindSafe for ExtensionBuilder
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