[−][src]Struct rss::extension::Extension
A namespaced extension such as iTunes or Dublin Core.
Fields
name: String
The qualified name of the extension element.
value: Option<String>
The content of the extension element.
attrs: HashMap<String, String>
The attributes for the extension element.
children: HashMap<String, Vec<Extension>>
The children of the extension element. This is a map of local names to child elements.
Implementations
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 Clone for Extension
[src]
impl Debug for Extension
[src]
impl Default for Extension
[src]
impl PartialEq<Extension> for Extension
[src]
impl StructuralPartialEq for Extension
[src]
Auto Trait Implementations
impl RefUnwindSafe for Extension
[src]
impl Send for Extension
[src]
impl Sync for Extension
[src]
impl Unpin for Extension
[src]
impl UnwindSafe for Extension
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
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.
pub 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>,