[−][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 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 Default for Extension
[src]
impl Debug for Extension
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> 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, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,