pub struct EventHelper { /* private fields */ }Implementations§
Source§impl EventHelper
impl EventHelper
pub fn new(event_name: impl Into<String>) -> EventHelper
pub fn check_add_attribute<T: ToString>( &mut self, check: &Option<T>, key: &str, value: impl Into<String>, ) -> EventHelper
pub fn add_attribute( self, key: impl Into<String>, value: impl Into<String>, ) -> EventHelper
pub fn add_attributes(self, attributes: Vec<Attribute>) -> EventHelper
pub fn get(&self) -> Event
Auto Trait Implementations§
impl Freeze for EventHelper
impl RefUnwindSafe for EventHelper
impl Send for EventHelper
impl Sync for EventHelper
impl Unpin for EventHelper
impl UnwindSafe for EventHelper
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