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§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Extension
impl<'de> Deserialize<'de> for Extension
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for Extension
impl PartialEq for Extension
impl StructuralPartialEq for Extension
Auto Trait Implementations§
impl Freeze for Extension
impl RefUnwindSafe for Extension
impl Send for Extension
impl Sync for Extension
impl Unpin for Extension
impl UnwindSafe for Extension
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more