pub struct Extension {
pub name: String,
pub value: Option<String>,
pub attrs: BTreeMap<String, String>,
pub children: BTreeMap<String, Vec<Extension>>,
}
Expand description
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: BTreeMap<String, String>
The attributes for the extension element.
children: BTreeMap<String, Vec<Extension>>
The children of the extension element. This is a map of local names to child elements.
Implementations
sourceimpl Extension
impl Extension
sourcepub fn set_name<V>(&mut self, name: V) where
V: Into<String>,
pub fn set_name<V>(&mut self, name: V) where
V: Into<String>,
Set the qualified name of this extension.
sourcepub fn set_value<V>(&mut self, value: V) where
V: Into<Option<String>>,
pub fn set_value<V>(&mut self, value: V) where
V: Into<Option<String>>,
Set the text content of this extension.
Trait Implementations
impl StructuralPartialEq for Extension
Auto Trait Implementations
impl RefUnwindSafe for Extension
impl Send for Extension
impl Sync for Extension
impl Unpin for Extension
impl UnwindSafe for Extension
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more