Struct eiffelvis_gen::event_set::Event
source · [−]pub struct Event { /* private fields */ }Expand description
Describes and Eiffel Event.
Note: as of yet, the data field Eiffel vocabulairy calls for is NOT supported, same goes for optional meta fields.
Implementations
sourceimpl Event
impl Event
sourcepub fn new(name: impl Into<String>, version: impl Into<String>) -> Self
pub fn new(name: impl Into<String>, version: impl Into<String>) -> Self
Creates a new Event with given name and version, see Event::with_link() to add links.
sourcepub fn with_link(self, link: impl Into<String>) -> Self
pub fn with_link(self, link: impl Into<String>) -> Self
Builder function that adds a non required link by name to self.
sourcepub fn with_req_link(self, link: impl Into<String>) -> Self
pub fn with_req_link(self, link: impl Into<String>) -> Self
Builder function that adds a required link by name to self.
Required links are guaranteed to be present on every event generator.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnwindSafe for Event
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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