[][src]Struct rss::extension::Extension

pub struct Extension { /* fields omitted */ }

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]

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]

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_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

impl Send for Extension

impl Sync for Extension

Blanket Implementations

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]