Struct vobject::component::Component [] [src]

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

Fields

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

The component's properties.

The component's child- or sub-components.

Methods

impl Component
[src]

[src]

[src]

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

[src]

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

[src]

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

[src]

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

[src]

Remove a single property.

[src]

Remove all properties

Trait Implementations

impl Clone for Component
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Component
[src]

[src]

Formats the value using the given formatter. Read more

impl FromStr for Component
[src]

The associated error which can be returned from parsing.

[src]

Same as vobject::parse_component

Auto Trait Implementations

impl Send for Component

impl Sync for Component