pub struct EventSetBuilder { /* private fields */ }
Expand description

Provides a way to construct the otherwise non constructable EventSet,
This builder type exists for convience and for validation purposes.

Implementations

Adds an existing event set, this is useful when want to combine multiple sets together.

Adds an Event to the event set.
Note: Event names are unique, so only the last added event is kept.

Adds a Link to the event set.
Note: Link names are unique, so only the last added link is kept.

Consumes the builder and returns a EventSet.
Fails if an event or a link references invalid links / events, e.g.:

assert!(EventSet::build()
    .add_event(Event::new("Event", "1.0.0").with_link("NonExistant"))
    .build()
    .is_none());

Trait Implementations

Returns the “default value” for a type. Read more

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 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.