pub struct Component {
    pub name: String,
    pub props: BTreeMap<String, Vec<Property>>,
    pub subcomponents: Vec<Component>,
}

Fields§

§name: String

The name of the component, such as VCARD or VEVENT.

§props: BTreeMap<String, Vec<Property>>

The component’s properties.

§subcomponents: Vec<Component>

The component’s child- or sub-components.

Implementations§

Append the given property, preserve other same-named properties.

Set the given property, remove other same-named properties.

Retrieve one property by key. Returns None if not exactly one property was found.

Retrieve properties by key. Returns an empty slice if key doesn’t exist.

Remove a single property.

Remove all properties

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more

Same as vobject::parse_component

The associated error which can be returned from parsing.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.