[−][src]Struct rss::extension::Extension
A namespaced extension such as iTunes or Dublin Core.
Methods
impl Extension
[src]
pub fn name(&self) -> &str
[src]
Return the qualified name of this extension.
pub fn set_name<V>(&mut self, name: V) where
V: Into<String>,
[src]
V: Into<String>,
Set the qualified name of this extension.
pub fn value(&self) -> Option<&str>
[src]
Return the text content of this extension.
pub fn set_value<V>(&mut self, value: V) where
V: Into<Option<String>>,
[src]
V: Into<Option<String>>,
Set the text content of this extension.
pub fn attrs(&self) -> &HashMap<String, String>
[src]
Return the attributes for the extension element.
pub fn children(&self) -> &HashMap<String, Vec<Extension>>
[src]
Return the children of the extension element.
This is a map of local names to child elements.
Trait Implementations
impl PartialEq<Extension> for Extension
[src]
impl Default for Extension
[src]
impl Clone for Extension
[src]
fn clone(&self) -> Extension
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for Extension
[src]
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,